IPv6 regex matches on "::"
See original GitHub issueMatched on: ::
Name: Internet Protocol (IP) Address Version 6
Link: https://www.shodan.io/host/::
This shouldn’t match.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Regular expression that matches valid IPv6 addresses
This regular expression will match valid IPv6 and IPv4 addresses in accordance with GNU C++ implementation of regex with REGULAR EXTENDED mode ...
Read more >8.17. Matching IPv6 Addresses - Regular Expressions ...
Match an IPv6 address in standard notation, which consists of eight 16-bit words using hexadecimal notation, delimited by colons (e.g.: ...
Read more >Regex for ip address(ipv6) - iHateRegex
Internet Protocol version 6 (IPv6) is the most recent version of the Internet Protocol. This is used to provide identification for devices in...
Read more >A Regular Expression for IPv6 Addresses - Fortra Community
Stephen Ryan at Dartware has produced a regular expression (regex) that can be used to match any legal format of an IPv6 address....
Read more >Match IPv6 Address - Regex Tester/Debugger
Regular Expression to This regex matches IPv6 addresses.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What do you mean by that? We can’t remove all instances of
::
because then the IPv6 regex won’t work.Sorry I got confused and thought you meant removing all instances of
::
and not just::
by itself.Now I’m confused again.
::
is used in IPv6 addresses. See here.The reason it wouldn’t work is because some IPv6 addresses use
::
in them and the regex wouldn’t match those.