Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一个简单的正则表达式来匹配所有 unicode 引号?还是必须像这样手动编码:
quotes = ur"[\"'\u2018\u2019\u201c\u201d]"
感谢您的阅读。
布赖恩
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.
Pi
Pf
'
"