次の 2 つのテキストの引用符の間にあるものを取得するにはどうすればよいですか?
text_1 = r""" "Some text on \"two\" lines with a backslash escaped\\" \
+ "Another text on \"three\" lines" """
text_2 = r""" "Some text on \"two\" lines with a backslash escaped\\" + "Another text on \"three\" lines" """
私にとっての問題は、エスケープされている場合は引用符を無視する必要があることですが、バックスラッシュをエスケープする可能性があります。
以下のグループを取得したいと考えています。
[
r'Some text on \"two\" lines with a backslash escaped\\',
r'Another text on \"three\" lines'
]