The problem to note is that all of the fields on each line are not guaranteed to be the same number, or have the same number of fields. Some lines may have two fields, some may have three, and based on the server app where I'm getting the data from, it could be more, which is why I originally thought I could keep it simple, employ a short regex to just look for the specific text on each line from the second file (Nonprod).