>Greg - while I have your ear - what do I need to change in order for Matches to match only lines that begin with BX followed by the other stuff we have ?
Pete,
So I understand correctly
Do you want
(1) to pass the whole file to a regex
(2) Pass line by line to the regex
In (2)
change
string pattern = "^(.{12})(.{17})(.{18})(.{21})(.{31})(.{10})$";
into
string pattern = "^(BX.{10})(.{17})(.{18})(.{21})(.{31})(.{10})$";
( and be prepared for lines that do not match)
Gregory