4 ms·
Crate identifiers are required to be [a-zA-Z] for the first character and [a-zA-Z0-9_-] for the rest. So, no. :P
by kibwen 10y 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
- aisofteng 10y agoMore succinctly: [A-z]+[A-z0-9_-]
- kibwen 10y agoIf you look closely at your comment, you'll realize the hilarious HN bug that prevents me from writing it as you suggest. :P
- majewsky 10y ago[a-zA-Z][a-zA-Z0-9_-]* FTFY
- deleted 10y ago[deleted]
- wruza 10y ago[\]^_` included, or is that a special case?
- jwilk 10y ago[A-z] is not the same as [A-Za-z] . The former includes a few punctuation characters that are between "Z" and "a".