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

Server IP validation pattern doesn't work correctly #3

Open
GoogleCodeExporter opened this issue Jul 13, 2015 · 0 comments
Open

Server IP validation pattern doesn't work correctly #3

GoogleCodeExporter opened this issue Jul 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

Using of pattern either 
(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{
2}|2[0-4][0-9]|25[0-5])
or 
(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-
9][0-9]?)(:\d{1,5})?

What is the expected output? What do you see instead?
matching with 123.34.1333.23 or any other wrong IP address should give false 
but it gives true 

What version of the product are you using? On what operating system?
Latest one

Please provide any additional information below.


Original issue reported on code.google.com by lev.mere...@googlemail.com on 10 Mar 2011 at 6:49

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

No branches or pull requests

1 participant