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.

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

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

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top