I tried to check the company name in the web application and had this regex pattern
^[a-zA-Z_'\\s,;.-0-9]{1,100}$
The above pattern will reject the value 10004 Estates Limited
But if I push 0-9, then the pattern becomes
^[a-zA-Z0-9_'\\s,;.-]{1,100}$
then it works. I am new to regex and patterns, but I know that I have to use it more, so I want to be extremely clear. Thank.
source
share