I’m trying to create a validation expression that checks the length of an input and allows text and punctuation marks (e.g. , ? ; : ! ” £ $ % )
What I have come up with so far is "^\s*(\w\s*){1,2046}\s*$" but this won’t allow any punctuation marks. To be honest I’m pretty sketchy in this area so any help would be greatly appreciated!
Thanks,
Steve
^— Beginning of string/line[]— A character class\w— A word character\s— A space character.,:;!?€¥£¢$-— Punctuation and special characters{}— Number of repeats (min,max)$— End of string/line