IP_6 - gekomad/scala-regex-collection GitHub Wiki

Type name example
IP_6
2001:db8:0:0:0:0:2:1
2001:db8:a0b:12f0::1
import com.github.gekomad.regexcollection.Validate.validate
import com.github.gekomad.regexcollection.IP_6
assert(validate[IP_6]("2001:db8:0:0:0:0:2:1") == Some("2001:db8:0:0:0:0:2:1"))
assert(validate[IP_6]("2001:db8:a0b:12f0::1") == Some("2001:db8:a0b:12f0::1"))