in reply to Why NO output???
Well, for starters there is no PER or EMP in the file, they are "PER" or "EMP" so you must include the quotes in the regexp thusly, /^"EMP"\s*$/
That will at least give you some output, there are more issues though. Like the traveler stated the regular expression will not match the line with the data in it (the data is the line after) so some other logic here is necessary.
Good luck,
{NULE}
--
http://www.nule.org
|
|---|