Skip to content
Giuseppe Cannella edited this page Jan 6, 2019 · 8 revisions
Type name example
IP 10.164.108.1
import com.github.gekomad.regexcollection.IP
assert(isValid[IP]("1011.164.108.1") == false)
assert(isValid[IP]("10.164.108.1") == true)
Type name example
IP1 10.164.108.1:80
import com.github.gekomad.regexcollection.IP1
assert(isValid[IP1]("101.164.108.1") == false)
assert(isValid[IP1]("101.164.108.1:80") == true)
Clone this wiki locally