Skip to content
Giuseppe Cannella edited this page Feb 19, 2020 · 5 revisions
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"))
Clone this wiki locally