在python正则表达式中匹配括号
发布于 2021-01-29 15:05:21
我有类似的东西
商店
结束行像1商店..我想匹配,它使用python正则表达式。
我尝试了类似的方法,re.match('store\(s\)$',text)
但是没有用。
编辑:添加代码,我试过
import re
s = '1 store(s)'
if re.match('store\(s\)$',s) :
print('match')
请帮助。
谢谢吉乔
关注者
0
被浏览
135
1 个回答