プレーンテキストを(空白も含めて)そのまま解析する方法はわかりませんが、テキスト内の特別な構造を一致させることはできます。あなたは私が達成しようとしている何 some plain text
specialStructure
plain text again
のような文字列があるとすると、私の最初の試みは、これが与えた場合でも import pyparsing as pp
def joi
私はpyparsingライブラリのコードを参照しています。そこでは、私は次の断片を見つけました: result = instring[loc] == self.firstQuoteChar and self.re.match(instring,loc) or None
if not result:
raise ParseException(instring, loc, sel