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.
我需要通过 API 向我的订阅者发送 SMS,API 不支持花哨的撇号,所以我想在发送给用户之前从消息中删除它。所以我正在寻找一个正则表达式,它应该删除花哨的撇号和任何其他不受支持的字符,同时消息可以有特殊字符。
您可以使用\u允许任何 unicode 字符。如果您可以列出一组有限的不受支持的字符,那么您可以通过将不受支持的字符括在[^和中来使用字符类否定]。
\u
[^
]