in reply to Regex 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.
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