Suppose you want to do regular expression search and extract over a pipe, but the pattern may cross multiple lines, How to do it? Maybe a regular expression library work for a stream?
I hope do this job using Python library? But any solution will be OK, a library not a cmd line tool of course.
BTW, I know how to solve my current problem, just seeking a general solution.
If no such libray exists, why regular library can not work with stream given the regular mathing algorithm never need backward scaning.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…