That indeed does work. What I was looking for was a single regular expression that could be tested against the text files. I would have to totally revamp the logic of the tool to use it. I finally did get the regular expression to do the trick and it is extremely long. Goes to show how a little logic can match a whole lot of regex.