Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2016-12-10 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (164 votes). Check out past polls.