Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Determing whether a regexp has capturing matches

by adrianh (Chancellor)
on Feb 27, 2007 at 15:58 UTC ( #602319=note: print w/ replies, xml ) Need Help??


in reply to Re: Determing whether a regexp has capturing matches
in thread Determing whether a regexp has capturing matches

$1 will be set to undef after a match with no parentheses.

Is this documented behaviour? I could have sworn I'd used a perl at some point where $1 persisted unless you made another captured match. I could, of course, be making shit up :-)


Comment on Re^2: Determing whether a regexp has capturing matches
Re^3: Determing whether a regexp has capturing matches
by Limbic~Region (Chancellor) on Feb 27, 2007 at 17:15 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2014-04-16 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (433 votes), past polls