更新时间:2022-11-14 21:21:29
.NET正则表达式中的大多数功能都可以在Python中使用;但是缺少一些东西:
Most of the features in .NET regexes are available in Python; however there are a few things missing:
(?> ...)
或所有格限定词 ++
, * +
,?+
. r"..."
原始字符串用于正则表达式,否则您将遇到反斜杠.(?>...)
or possessive quantifiers ++
, *+
, ?+
.r"..."
raw strings for regular expressions, or you'll trip up on backslashes.全面的差异列表可以在此处找到.
如果您需要经常进行正则表达式转换,则 RegexBuddy 可以为您做到(只要您当然,不使用目标正则表达式引擎不具备的功能.
And if you need to do regex conversions often, RegexBuddy can do it for you (as long as you're not using features the destination regex engine doesn't have, of course).