in reply to Re: Quantifier follows nothing error in Regexp::Grammars (quantifier "?")
in thread Quantifier follows nothing error in Regexp::Grammars
Minor comment: the hyphen should be the first character in the character class:
<token: punctuation> ( [-.,?!"';:\&()\[\]]+ )
otherwise it is interpreted as defining a range rather than a literal hypen.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Quantifier follows nothing error in Regexp::Grammars (quantifier "?")
by Happy-the-monk (Canon) on Oct 09, 2013 at 07:18 UTC | |
|
Re^3: Quantifier follows nothing error in Regexp::Grammars (quantifier "?")
by soonix (Chancellor) on Oct 09, 2013 at 09:58 UTC | |
|
Re^3: Quantifier follows nothing error in Regexp::Grammars (hyphen charclass)
by Anonymous Monk on Oct 09, 2013 at 08:30 UTC | |
by hdb (Monsignor) on Oct 09, 2013 at 08:42 UTC | |
by Anonymous Monk on Oct 09, 2013 at 08:50 UTC | |
by Happy-the-monk (Canon) on Oct 09, 2013 at 08:44 UTC |