Hacker News new | ask | show | jobs
by aisofteng 3334 days ago
More succinctly: [A-z]+[A-z0-9_-]
3 comments

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?