![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Regex helpby nemesdani (Friar) |
on Sep 18, 2012 at 21:12 UTC ( #994368=note: print w/replies, xml ) | Need Help?? |
^R\d\d\d\d\d$ means that you look for a line which contains nothing, but Rxxxxx. That's not whar you want, I think. If the records are in separate lines, then use /(R\d\d\d\d\d)(.*)=>(.*)/ $3 will contain whatever comes after =>. I'm too lazy to be proud of being impatient.
In Section
Seekers of Perl Wisdom
|
|