阅读背景:

Python:检查列表中至少一个regex是否与字符串匹配的优雅方法

来源:互联网 

I have a list of regexes in python, and a string. Is there an elegant way to check if the at least one regex in the list matches the string? By elegant, I mean something better than simply looping through all of the regexes and checking them against the string and stopping if a match is found.I have a list of regexes in python, and a strin




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

分享到: