lgirdk / boardfarm

Automated testing with python
BSD 3-Clause Clear License
21 stars 33 forks source link

tests: lib: regexlib: added regex that matches compressed IPv6 addresses #265

Closed mgualco-contractor closed 5 years ago

mgualco-contractor commented 5 years ago

Hopefully this will match all valid IPv6 addresses. This regex matches: FEDC:BA98:7654:3210:FEDC:BA98:7654:3210 1080:0:0:0:8:800:200C:417A 0:0:0:0:0:0:0:1 fd42:42:42:42::1 1762:0:0:0:0:B03:1:AF18 1762:0:0:0:0:B03:127.32.67.1 1762::B03:1:AF18 762::B03:127.32.67.15 2001:0000:1234:0000:0000:C1C0:ABCD:0876 fe80:0:0:0:204:61ff:fe9d:f156 fe80::204:61ff:fe9d:f156 fe80:0000:0000:0000:0204:61ff:254.157.241.86 fe80:0:0:0:0204:61ff:254.157.241.86 fe80::204:61ff:254.157.241.86 ::1 fe80:: 2001::

Signed-off-by: Michele Gualco mgualco.contractor@libertyglobal.com

mattsm commented 5 years ago

That's neat-o