Skip to content
Giuseppe Cannella edited this page Jan 6, 2019 · 6 revisions
Type name example
HEX hex code with or without #
#F0F0F0
F0F0F0
import com.github.gekomad.regexcollection.HEX
assert(isValid[HEX]("#FAFAFA") == true)
Type name example
HEX1 hex code with #
#F0F0F0
import com.github.gekomad.regexcollection.HEX1
assert(isValid[HEX1]("#FAFAFA") == true)
Type name example
HEX2 hex code with # or 0x
#F0F0F0
0xF0F0F0
import com.github.gekomad.regexcollection.HEX2
assert(isValid[HEX2]("#FAFAFA") == true)
Type name example
HEX3 hex code with 0x
0xF0F0F0
import com.github.gekomad.regexcollection.HEX3
assert(isValid[HEX3]("0xFAFAFA") == true)

Clone this wiki locally