All Questions
1 question
0
votes
1
answer
141
views
Passing dynamic values inside a regular expression statement is not working? [duplicate]
I have a validation rule on an input field that allows a maximum of three words to be typed and I am using a regex rule (/^\s*(?:\S+(?:\s+\S+){0,2}\s*)?$/) to validate this.
Now, I don't want to ...