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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -