regex - String is a prefix of a valid IPv6 -


i'm working on auto-completion task , want check whether given string prefix of valid ipv6 address. example, string "2001:" prefix of ipv6 address "2001:db8::2:1" or can prefix of ipv6 address "2001:a8::4:c". function should return true if string prefix of valid ipv6. i've searched internet , found ipv6 validation only. thanks


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -