I've looked at several posts and other forums to find an answer related to my question, but nothing has come up specific to what I need. As a heads up, I'm new to programming and don't possess the basic foundation that most would.
I know bash, little python, and decent with RE.
I'm trying to create a python script, using RE's to parse through data and give me an output that I need/want.
My output will consist of 4 values, all originating from one line. The line being read in is thrown together with no defined delimiter. (hence the reason for my program)
In order to find one of the 4 values, I have to say look for 123-
and give me everything after that but stop here df5
. The 123-
is not constant, but defined by a regular expression that works, same goes for df5
. I assigned both RE's to a variable. How can I use those variables to find what I want between the two... Please let me know if this makes sense.