Hacker News new | past | comments | ask | show | jobs | submit login

More succinctly: [A-z]+[A-z0-9_-]



If you look closely at your comment, you'll realize the hilarious HN bug that prevents me from writing it as you suggest. :P


  [a-zA-Z][a-zA-Z0-9_-]*
FTFY


[A-z] is not the same as [A-Za-z] .

The former includes a few punctuation characters that are between "Z" and "a".


[\]^_` included, or is that a special case?




Registration is open for Startup School 2019. Classes start July 22nd.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: