Skip to main content
code formatting
Source Link
barbsan
  • 3.5k
  • 11
  • 23
  • 29

Here is the regex for what you want with a quantifier to specify at least 1 character and no more than 255 characters

[^a-zA-Z0-9 _]{1,255}

[^a-zA-Z0-9 _]{1,255} 

Here is the regex for what you want with a quantifier to specify at least 1 character and no more than 255 characters

[^a-zA-Z0-9 _]{1,255}

Here is the regex for what you want with a quantifier to specify at least 1 character and no more than 255 characters

[^a-zA-Z0-9 _]{1,255} 
Source Link
mson
  • 7.8k
  • 6
  • 43
  • 70

Here is the regex for what you want with a quantifier to specify at least 1 character and no more than 255 characters

[^a-zA-Z0-9 _]{1,255}