Python中正则表达式问题_百度知道
试试: <a href = (http://[\w]+\.baidu\.com/p/[\d]+/)[^<]+</a></table>更多关于Python中正则表达式"()"的疑问的问题>>
请问python中这个正则表达式应该怎么写_百度知道
最佳答案: >>> r = re.compile(r'tieba.baidu.*?(\d+)')>>> r.findall("href = tieba.baidu.com/p/3822565335")['3822565335']更多关于Python中正则表达式"()"的疑问的问题>>
python中正则表达式的一个奇怪问题_百度知道
最佳答案: {m,n}? Causes the resulting RE to match from m to n repetitions of the preceding RE, attempting to match as few repetitions as possible...更多关于Python中正则表达式"()"的疑问的问题>>
python *的疑问_正则表达式吧_百度贴吧
2回复贴,共1页 <<返回正则表达式吧python *的疑问 只看楼主 收藏 回复zs5868668初级粉丝 1a = 'xassdfxxx'b = re.findall('x*',a)print b输出...