Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IPv4:
- true - '127.0.0.1'
- true - '255.255.255.255'
- true - '192.168.33.10'
- false - '192.fail.33.10'
- false - '192.fail.33.10'
- false - '192.168.33.10.10'
- false - '192.168.10'
- false - '256.168.10.0'
- false - '256...0'
- false - 1234
- IPv6:
- true - '2001:0db8:85a3:0000:0000:8a2e:0370:7334'
- true - '2001:0db8:85a3:0:0:8a2e:0370:7334'
- true - 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff'
- true - '2001:db8::ff00:42:8329'
- true - '::1'
- true - '1:2:3:4:5:6:7::'
- true - '::2:3:4:5:6:7:8'
- false - '192.168.33.10'
- false - '2001:0db8:85a3:1234:5349:8a2e:0370:7334:1234'
- false - ':2000'
- false - '2001:0db8:85a3:1234:123456789:8a2e:0370:7334'
- false - '234::123::23'
- false - 1234
- false - '2001:0db8:85a3:9876:1234:8a2e'
- false - '1:2:3:4:5::6:7:8'
- false - ':1:2:3:4:5:6:7'
- IP:
- true - '127.0.0.1'
- true - '0.0.0.0'
- true - '::1'
- true - '2001:0db8:85a3:0:0:8a2e:0370:7334'
- false - 'F.A.I.L'
- false - 'F:A:I:L:U:R:E:!:'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement