Stack Overflow archive
1 score

Regex for First name only English

score
1
question views
628
license
CC BY-SA 4.0

\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.