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

Crate identifiers are required to be [a-zA-Z] for the first character and [a-zA-Z0-9_-] for the rest. So, no. :P

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