[Solved] regex space validation

[ad_1]

Not entirely sure what you’re planning to do, but if you want to stop people from entering more than 26 non-space characters in a row, then the regex

/\S{27}/

will check for that. If it matches, the string contains 27 or more non-space characters.

10

[ad_2]

solved regex space validation