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 回答