Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Word count Regular expression for åäö

  • gorp
  • gorp's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 6 months ago #174366 by gorp
Hi,
I want to make sure that respondence only may write one word in each response box. So i've been using this:
/^[-\w]+(?:\W+[-\w]+){0,1}\W*$/ from the manual manual.limesurvey.org/Using_regular_expressions .

However, it does not work for the swedish letter å ä and ö. That is, respondents are no allowed to write those letters.
I am not sure what this regular expression does; but would it not be best to have a regular expression that does not allow the space? And in that case how would it look.

Thanks
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose