首页 新闻 会员 周边
1
回答数

已关闭问题 10 正则表达式如何匹配带重复部分的字符串

1 import re 2 txt='there are a big apple and a big pear and three big peachs' 3 reg=r'big (apple|pea