2

すべてのUnicode引用符に一致する単純な正規表現はありますか?または、次のように手動でコーディングする必要がありますか?

quotes = ur"[\"'\u2018\u2019\u201c\u201d]"

読んでくれてありがとう。

ブライアン

4

2 に答える 2

5
于 2010-06-27T21:12:35.480 に答える
5

Quotation marks will often have the Unicode category Pi (punctuation, initial quote) or Pf (Punctuation, final quote). You'll have to handle the "neutral" quotation marks ' and " manually.

于 2010-06-27T21:17:04.953 に答える