Removing blocks of text with python
Question: I'm trying to remove large blocks of text from a file using python. Each block
of text begins with

/translation="SOMETEXT"

Ending with the second quote.

Can anyone give me some advice on how to accomplish this?

Thank you


Answer: You can use re.sub like this:

    
    
    import re
    re.sub("/translation=\".*?\" ", "", s)
    

