Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Quantifier follows nothing error in Regexp::Grammars (quantifier "?")

by Happy-the-monk (Abbot)
on Oct 09, 2013 at 07:18 UTC ( #1057495=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057495]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-01-18 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (160 votes). Check out past polls.