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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2016-02-09 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (292 votes), past polls