阅读背景:

Python正则表达式,带有可选但贪婪的组

来源:互联网 

I'm trying to write a regular expression to match a string that may or may not contain two tags. I need the expression to return me all five elements of the string, depending on whether they exist, but when I make the tags optional, the wildcard bits seem to gobble them up:I'm trying to write a regular expression to mat




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: