Skip to main content
 首页 » 编程设计

python之正则表达式 Python 不工作

2025年05月04日39pengyingh

<分区>

我的 Reg-Ex 模式不起作用,为什么?

string = "../../example/tobematched/nonimportant.html" 
pattern = "example\/([a-z]+)\/" 
test = re.match(pattern, string) 
# None 

http://www.regexr.com/39mpu