Python Parsing File Remove Section

This would work

^:Quote_two \([\s\S]+?[\r\n]+\)

Use the code generator button at regex101 to get a Python code sample.

https://regex101.com/r/g2I9ET/1/


If you enable re.DOTALL then this would be equivalent:

^:Quote_two \(.+?[\r\n]+\)

https://regex101.com/r/JHp1GL/1/

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top