Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Why does this simple grouping regex not match?

by fisher (Priest)
on Feb 28, 2011 at 13:38 UTC ( #890560=note: print w/replies, xml ) Need Help??


in reply to Why does this simple grouping regex not match?

(?=a|b|c)
I'm not sure how it iterprets exactly, but I think you need actually
perl -e '$_ = "(b)."; /\([abc]\)/ && do { print "match!\n"; };'
or
perl -e '$_ = "(b)."; /\((a|b|c)\)/ && do { print "match!\n"; };'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890560]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2020-12-01 15:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (10 votes). Check out past polls.

    Notices?