Welcome, Guest
Username: Password: Remember me

TOPIC: regular expressions

regular expressions 3 years 4 months ago #58417

  • eggertli
  • eggertli's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Thank you received: 1
  • Karma: 0
Hello,
I am using version 1.90. Actually I#m trying to set conditions with regular expressions. A question sould only be displayed, if question x fits into the following regular expression:
first one letter, then six digits (0-9)
I tried to solve the problem on my own, nut it doesn't work, question x is not displayed... The attempt which seems most promising:

/^[a-zA-Z]{1}\[0-9]{6}/
Thanks for your help!!!
Greetings,
Lisa Eggert


Note: BBcode und Smiles können verwendet werden.
The administrator has disabled public write access.

Aw: regular expressions 3 years 4 months ago #58420

  • eggertli
  • eggertli's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 8
  • Thank you received: 1
  • Karma: 0
Problem solved!!!! The working expression is:
^[a-zA-Z][0-9]{6}$
The administrator has disabled public write access.

Re: Aw: regular expressions 3 years 4 months ago #58425

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6219
  • Thank you received: 791
  • Karma: 238
eggertli wrote:
Problem solved!!!! The working expression is:
^[a-zA-Z][0-9]{6}$
Thank you !

:)
The administrator has disabled public write access.

Re: Aw: regular expressions 3 years 4 months ago #58454

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5300
  • Thank you received: 291
  • Karma: 247
Please add your solution at manual -> regular expressions. Thanks!

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.114 seconds
Donation Image