Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

99页匹配ip地址的正则表达式感觉有点问题 #110

Open
Flywolfs opened this issue Aug 4, 2018 · 0 comments
Open

99页匹配ip地址的正则表达式感觉有点问题 #110

Flywolfs opened this issue Aug 4, 2018 · 0 comments

Comments

@Flywolfs
Copy link

Flywolfs commented Aug 4, 2018

自己试了一下这个((25[0-5]|[2[0-4]\d|[0-1]\d{2}|[1-9]?\d).){3}((25[0-5]|[2[0-4]\d|[0-1]\d{2}|[1-9]?\d)),这个
d|[0-1]\d{2}会把0XX这类的"数字"匹配到,但是现实的ip地址对于0XX不都应该不带前面的0吗?所以想请教一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant