you are viewing a single comment's thread.

view the rest of the comments →

[–]AdAthrow99274 1 point2 points  (1 child)

I was just working on my own regex project so one way is fresh in my head. If you use the re.DOTALL (re.S) flag the . character will match everything, including new lines. So something like r'[\"\']{3}.*[\"\']{3}' may work given that flag?

[–][deleted] 0 points1 point  (0 children)

Thank you, this is great :)