Hacker News new | ask | show | jobs
by kibwen 3330 days ago
Crate identifiers are required to be [a-zA-Z] for the first character and [a-zA-Z0-9_-] for the rest. So, no. :P
1 comments

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?