General Settings
Theme
Regex Settings
Theme:
ms
Initializing editor, please stand by...
Loading content, please hold...
You seem to be using an outdated version of your browser which is no longer supported by regex101.com. It is highly recommended that you upgrade your browser. Sorry for the inconvenience.
Status: Fetching debug info...
collapse all
Please hold while we fetch the debug data. This might take some time.
/
/


{1: Initial address, regex should say valid/match}
2001:0db8:0000:0000:0000:ff00:0042:8329

2001:0000:4136:e378:8000:63bf:3fff:fdd2

{2: After removing all leading zeroes, regex should say valid/match}
2001:db8:0:0:0:ff00:42:8329

{3: After omitting consecutive sections of zeroes, regex should say valid/match}
2001:db8::ff00:42:8329

{4: The loopback address, regex should say valid/match}
0000:0000:0000:0000:0000:0000:0000:0001

{5: The loopback address be abbreviated to ::1 by using both rules, regex should say valid/match}
::1

{6: This should be valid, regex should say valid/match}
ABCD:ABCD:ABCD:ABCD:ABCD:ABCD:192.168.158.190

{7: This should NOT be valid/match}
::

{These two formats allows IPv6 applications to communicate directly with IPv4 applications, regex should say valid/match}
{8}
0:0:0:0:0:ffff:192.1.56.10

{These next two formats are used for tunneling. It allows IPv6 nodes to communicate across an IPv4 infrastructure, regex should say valid/match}
{9}
0:0:0:0:0:0:192.1.56.10

{These 4 should be valid/match}
{10}
::FFFF:129.144.52.38
{11}
::129.144.52.38
{12}
::FFFF:d
{13}
1080:0:0:0:8:800:200C:417A

{These 4 should NOT be valid/match}
{14}
::FFFF:d.d.d
{15}
::FFFF:d.d
{16}
::d.d.d
{17}
::d.d
 

Create test
given the string
assert that
Test list
n/a
Explanation
An explanation of your regex will be automatically generated as you type.
Match information
Detailed match information will be displayed here automatically.
Quick reference