Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 perusing the Monastery: (10)
As of 2015-07-29 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls