且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我可以在 Python RegEx 中混合字符类吗?

更新时间:2023-01-14 21:14:18

你可以使用r"[^\W\d]",即.反转非字母数字和数字的并集.

You can use r"[^\W\d]", ie. invert the union of non-alphanumerics and numbers.