Minor comment: the hyphen should be the first character in the character class:
Why do you think so, what are the reasons for this habit/style?
I vaguely recall maybe that I read this advice before, but it didn't stick :) (not memorable)
In reply to Re^3: Quantifier follows nothing error in Regexp::Grammars (hyphen charclass)
by Anonymous Monk
in thread Quantifier follows nothing error in Regexp::Grammars
by nathaniels
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |