I have a tab delimited file in the following format:
USGS 3453000 VY RIVER NEAR MARSHALL, NC 03 00065 2003-06-30 10:15:00 2.47 0 2003-06-30 10:21:12
I am trying to use RegExp to grab the information I need out of a text file. The unique field to search on is the second column (i.e., 3453000 (this will be substituted with a variable later)) to locate a match. However, I need to get the entire line of information. I have a couple of questions on how to do this. First, would it be better to search on just the second column and somehow read the entire line or develop a robust pattern that captures all of the data at once? Secondly, if the second option is the better way to go then could someone please help with the pattern? They are very daunting to say the least. Thanks!
USGS 3453000 VY RIVER NEAR MARSHALL, NC 03 00065 2003-06-30 10:15:00 2.47 0 2003-06-30 10:21:12
I am trying to use RegExp to grab the information I need out of a text file. The unique field to search on is the second column (i.e., 3453000 (this will be substituted with a variable later)) to locate a match. However, I need to get the entire line of information. I have a couple of questions on how to do this. First, would it be better to search on just the second column and somehow read the entire line or develop a robust pattern that captures all of the data at once? Secondly, if the second option is the better way to go then could someone please help with the pattern? They are very daunting to say the least. Thanks!