Mac@programming.dev to Programmer Humor@programming.dev · 11 months agoGoOnprogramming.devimagemessage-square53fedilinkarrow-up1870arrow-down140
arrow-up1830arrow-down1imageGoOnprogramming.devMac@programming.dev to Programmer Humor@programming.dev · 11 months agomessage-square53fedilink
minus-squaretabularasa@lemmy.worldlinkfedilinkarrow-up10·11 months agoNot to nitpick, but an IPv6 address is represented as eight groups of four hexadecimal digits separated by :. Like 2001:0db8:3333:4444:5555:6666:7777:8888.
minus-squaredoctorcrimson@lemmy.todaylinkfedilinkarrow-up4·11 months agoOmg, that’s twice now I’ve messed it up. Fixed.
minus-squarenephs@lemmygrad.mllinkfedilinkarrow-up1·11 months agoI’ll leave the regex to validate an ipv6 address as an exercise to the reader.
Not to nitpick, but an IPv6 address is represented as eight groups of four hexadecimal digits separated by :. Like 2001:0db8:3333:4444:5555:6666:7777:8888.
Omg, that’s twice now I’ve messed it up. Fixed.
I’ll leave the regex to validate an ipv6 address as an exercise to the reader.