-
Notifications
You must be signed in to change notification settings - Fork 0
SingleChar
Giuseppe Cannella edited this page Feb 19, 2020
·
2 revisions
Type name | example |
---|---|
SingleChar | A |
import com.github.gekomad.regexcollection.SingleChar
import com.github.gekomad.regexcollection.Validate.validate
assert(validate[SingleChar]("aa") == None)
assert(validate[SingleChar]("1") == None)
assert(validate[SingleChar]("a") == Some("a"))
assert(validate[SingleChar]("A") == Some("A"))