Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Assigning REGEX Match to a separate variable?

by mmartin (Monk)
on Apr 02, 2012 at 16:54 UTC ( #963062=note: print w/ replies, xml ) Need Help??


in reply to Re: Assigning REGEX Match to a separate variable?
in thread Assigning REGEX Match to a separate variable?

Hey choroba,

Thanks for your quick reply!!
"perlop" that's the perldoc I was looking for... Searched every where for that. Thanks.

Ok, cool so using the parenthesis allows you to pull out the actual matched string (i.e. $1) instead of getting just a true or false...
Good deal... It worked! Thanks!

Thanks Again,
Matt


Comment on Re^2: Assigning REGEX Match to a separate variable?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2015-07-31 08:11 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 (275 votes), past polls