Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by Happy-the-monk (Monsignor)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-08-31 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls