Regular expression to limit all letters to less than 100 characters

I need a regular expression that would limit the number of characters to 100 and allow the use of 0-9 ,! @.,;: '"? - and all lower and upper case letters

+3
source share
3 answers
/^[0-9A-Za-z!@.,;:'"?-]{1,100}\z/
+5
source

Language dependent but should be

^[0-9A-Za-z!@\.;:'"?-]{1,100}$

As stated in the comments, and just to avoid using bad examples:

^[0-9A-Za-z!@.,;:'"?-]{1,100}\z
+4
source
^(.{1,100})$

. {1,100} , , , min max count

+4

All Articles