-
Notifications
You must be signed in to change notification settings - Fork 0
Giuseppe Cannella edited this page Feb 19, 2020
·
10 revisions
Type name | example |
---|---|
abc@def.com |
import com.github.gekomad.regexcollection.Validate.validate
import com.github.gekomad.regexcollection.Email
assert(validate[Email]("$sdsdsd@sdf.com") == Some("$sdsdsd@sdf.com"))
assert(validate[Email]("sdsdsd@sdf.com") == Some("sdsdsd@sdf.com"))
assert(validate[Email]("bar@a.a") == Some("bar@a.a"))
assert(validate[Email](" sdsdsd@sdf.com") == None)
assert(validate[Email]("abc,a@%.d") == None)