Check out the LimeSurvey source code on GitHub!

regular expressions

More
5 years 11 months ago #58417 by eggertli
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.

Please Log in to join the conversation.

More
5 years 11 months ago #58420 by eggertli
Problem solved!!!! The working expression is:
^[a-zA-Z][0-9]{6}$

Please Log in to join the conversation.

More
5 years 11 months ago #58425 by DenisChenu

eggertli wrote: Problem solved!!!! The working expression is:
^[a-zA-Z][0-9]{6}$

Thank you !

:)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 11 months ago #58454 by Mazi
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)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form