![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: regular expression helpby amphiplex (Monk) |
on Jul 17, 2002 at 16:38 UTC ( [id://182499]=note: print w/replies, xml ) | Need Help?? |
This should do the job:
The first regex handles comment lines, the second one greps all occurances of either an X,Y or Z followed optionally by a negative or positive sign followed by a combination of digits and dot. If there is only one comment line on the top of each file, you could do this faster, but for a couple of thousand lines it should not matter. update: the code was wrong, I forgot the * after the sign match. ---- amphiplex
In Section
Seekers of Perl Wisdom
|
|