\S matches any non-whitespace character (equal to [^\r\n\t\f\v ]).
I am no regex ninja, but this should work: ^[A-Za-z][A-Za-z ]{0,7}. See: https://regex101.com/r/xQe81c/4
\S matches any non-whitespace character (equal to [^\r\n\t\f\v ]).
I am no regex ninja, but this should work: ^[A-Za-z][A-Za-z ]{0,7}. See: https://regex101.com/r/xQe81c/4
Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.