Hey guys how can i parse this output in Python:
/abc{3,}zz/
the quick brown fox
No match
/The quick brown fox/i
the quick brown fox
0: the quick brown fox
/a*abc?xyz+pqr{3}ab{2,}xy{4,5}pq{0,6}AB{0,}zz/
the quick brown fox
No match
to get this string "/The quick brown fox/i"
I considered using something like foo.find("0:") but from there I can't think of how to get the line above this should be pretty simple thanks for the help!
lines, find on list line with '0:' and thenlines[index-2]