IP Address Validation

  • + 2 comments

    These are some of the valid IPv6 addresses... your regexp doesnt work on these...

    2001:db8:3333:4444:5555:6666:7777:8888
    2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF
    ::
    2001:db8::
    ::1234:5678
    2001:db8::1234:5678
    2001:0db8:0001:0000:0000:0ab9:C0A8:0102
    0:0:0:0:0:0:0:0
    2001:db8:1::ab9:C0A8:102

    Your regexp is working on only 2 of them