You just need to find quotes in the text. Indeed, everything that does not know what it will be for the text in general.
My genius was enough for such a regular season:

([“”]|[«»]|["]){1}.{2,}?\1 

And it works, but only with regular quotes, but how to do it with the rest?

For example:

"Rested - in! Sour cream - in! Fish - in!"
“I arrive in Tahiti ... And you were not in Tahiti?”
“Haiti, Haiti ... We were not in any Haiti!
We are well fed here. ”
"Rodi-and-Itelsky house ... Nacha-a-alo began ..."

  • Where will this regular schedule be performed? - Grundy
  • On the table at the teacher, lol - BearPro
  • one
    and what dialect of regulars he will use when checking? - Grundy
  • What dialect is implemented in the re module in Python 3.6? - BearPro
  • Add to the question examples of lines to which you applied the specified regular season, the expected result and the result that you get now - Grundy

1 answer 1

The solution is clumsy, but here’s what I came up with:

 r'(".{2,}?"|“.{2,}?”|«.{2,}?»)' 

with the re.DOTALL flag in the case of Python