Dec 4, 2008

匹配ip地址的python正则表达式

pattern =
'^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])$'

No comments:

Post a Comment

您的评论将使我blog更有动力~