Hello,
I am sorry if this was already answered somewhere else, but I was extensively googling before and I could not find an answer to my question. I am also new to LimeSurvey and regular expressions so this question might be rather basic.
I want to have a word count that considers that apostrophes can be part of a word (e.g. isn't should count as one word and not two).
In some part of the manual Limesurvey suggests using
regex101.com
to test regular expressions. The regular expression
^\W*(?:[a-zA-Z0-9'-]+\b\W*){1,3}$
works exactly as expected if I test it in this website, but when I try to translate it to the validation fields (equation and tip) e.g. as such
regexMatch('/^\W*(?:[a-zA-Z0-9"'"-]+\b\W*){1,3}$/', Abstract.NAOK)
this format is not accepted.
Is there a way of translating the above regular expression into a format recognized by LimeSurvey?
Thanks in advance.