http://www.perlmonks.org?node_id=1057495


in reply to Re^2: Quantifier follows nothing error in Regexp::Grammars (quantifier "?")
in thread Quantifier follows nothing error in Regexp::Grammars

the hyphen should be the first character in the character class ... otherwise it is interpreted as defining a range rather than a literal hypen.

...or the last...
...or escaped with a backslash \.

Cheers, Sören

Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)

  • Comment on Re^3: Quantifier follows nothing error in Regexp::Grammars (quantifier "?")
  • Download Code