Hi,
I am trying to create a regex that prints out the data contained between two text flags- "Twist 1" and "Twist 2"
The data looks like this:
Twist 0\n
... (load of uninteresting data)
Twist 1\n
... (load of interesting data)
Twist 2\n
...(more unintersting data)
I have been trying to use the following code:
perl -n -e 'while(m/Twist 1(.*)/Twist 2/g){print "$1";}' testresults
where testresults is the name of my text file. Unfortunately, I get no results at all from this regex. What am I doing wrong? Is it something to do with having newlines in the text?
Thanks
Michael