matching parentheses in python regular expression

前端 未结 3 537
礼貌的吻别
礼貌的吻别 2020-12-21 08:05

I have something like

store(s)

ending line like 1 store(s) .. I want to match , it using python regular expression.

I

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-21 08:40

    have you considered re.match('(.*)store\(s\)$',text) ?

提交回复
热议问题