Python正则表达式ipaddress

时间:2016-03-29 22:26:50

标签: python regex

我做了一些研究,看到匹配ipaddress的正则表达式是

pattern = r'\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}'
mo = re.findall(pattern, line(s))

但是我想弄清楚逗号是什么意思而不是破折号,\d{1-3}

谢谢!

0 个答案:

没有答案
相关问题