Does anybody know any regex to restrict a string to specified number of lines and words for data validation of a field in google forms?
I have already tried the following expression
^(?:\b\w+\b[\s\r\n]*){1,250}$
That would limit to 250 words over multiple lines.
but it is not working when there is any special character in the string. Any help would be appreciated.