The stupid question is the question not asked | |
PerlMonks |
Re^3: How do i extract 3 variables from each line in a file, and print them to a new fileby davidrw (Prior) |
on Jul 08, 2005 at 16:28 UTC ( [id://473477]=note: print w/replies, xml ) | Need Help?? |
your solution didn't work ... Yeah, i guess i could anchor to the end (especially since OP said 'last 3 numbers' but might be able to assume that the ":ms" strings in there will be restrictive enought to get the right one.. i guess to go strictly by 'last 3 numbers' the (\d+)\D+ solution above is better (though in that one i would make the last \D+ a \D*)..
In Section
Seekers of Perl Wisdom
|
|