I have a short free text question with input box width 4 and max chars 4 where I want people to enter "+" or "-" followed by a number (three digits max), or zero. The regular expression I built to validate works OK when I test it on
regex101.com/
, but not in LimeSurvey it seems. There, any number entered after "+" except zero(es), is rejected.
Regex used: "/^0|((\+|-)[0-9]{1,3})$/". See attached survey lss file.
Any suggestions?
I already made a
bug report
.
Tnx, Frank
fvanderstarre wrote: I already made a
bug report
.
Please post the ticket ID or full link, thanks.
When using "{" or "}" within a regex, the expression manager should not do any replacement since the regex is treated as a string.
Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!