We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Try: var ip_regex = /([0-9]{1,3}(.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{0,4}){2,7})/
The text was updated successfully, but these errors were encountered:
Why is there a "." in the pattern? Is it really acceptable for any character to match in that case?
Sorry, something went wrong.
I have only changed the 2nd part (IPv6) of the pattern. 2001::1 is valid, too.
But you are right, the "." on the IPv4 part should be masked: "." It was elliminated by the comment field here. I need to use \ to get an \ here!
No branches or pull requests
Try:
var ip_regex = /([0-9]{1,3}(.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{0,4}){2,7})/
The text was updated successfully, but these errors were encountered: