import re str = '123abc 566abc 678ddd 899nchdf' result = re.findall('.*abc.*', str) print(result)
import re
str = '123abc 566abc 678ddd 899nchdf'
result = re.findall('.*abc.*', str)
print(result)
本文标题:正则表达式匹配包含abc的所有字符串
本文链接:https://www.haomeiwen.com/subject/ljvioktx.html
网友评论