写正则前,先要把可能出现的情况列出来
匹配IP地址的正则表达式:
((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)
posted on 2010-11-30 14:55 JRoger 阅读(334) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 JRoger Powered by .NET 9.0 on Kubernetes