import re string = '<h4 class="title">愤怒的葡萄</h4>' pattern = '<h4 class="title">(.*?)</h4>' # pattern = '.*?\s' s = re.compile(pattern).findall(string) print(s)
posted on 2019-06-24 20:39 小明他很忙 阅读(938) 评论(0) 编辑 收藏 举报