I'm trying to parse through text files that contain several pieces of data that I need to drop into a growing array.I need to find and store in an array measurements happening after a string that reads "P1".
The values can be either positive or negative (and i need the positive or negative information to be kept with the values), so I can't just set the regex to find blank number of characters after a string because it may vary. Also, the section named "Error" may contain more lines depending on the text file...
Mind you, I have never used regex for anything other than finding certain specific text and returning a true or false value...so I'm very new at this/don't know how to. I was thinking that something could be done to find and store text occurring after "P1:", but I don't know how to do express it.
Any help would be great...I am lost and learning...but it's not happening as fast as I want it to and I'm a little stuck.
Thanks! I appreciate the help.
Elle