![]() |
|
"be consistent" | |
PerlMonks |
Re: Quick question on matchingby c-era (Curate) |
on May 21, 2002 at 16:45 UTC ( #168186=note: print w/replies, xml ) | Need Help?? |
You can use a reference, place parens around the part you want, and use $1 to access that part of the regex. If you have more then one set of parens, you would use $2 to access the second one, $3 to access the third, etc.
In Section
Seekers of Perl Wisdom
|
|