-
Notifications
You must be signed in to change notification settings - Fork 0
ItalianMobilePhone
Giuseppe Cannella edited this page Feb 19, 2020
·
2 revisions
Type name | example |
---|---|
ItalianMobilePhone | 3381234561 |
import com.github.gekomad.regexcollection.ItalianMobilePhone
import com.github.gekomad.regexcollection.Validate.validate
assert(validate[ItalianMobilePhone]("""+39 3401234567""") == None)
assert(validate[ItalianMobilePhone]("""347 1234567""") == None)
assert(validate[ItalianMobilePhone]("""338-1234567""") == None)
assert(validate[ItalianMobilePhone]("""02343434""") == None)
assert(validate[ItalianMobilePhone]("""+393471234561""") == Some("""+393471234561"""))
assert(validate[ItalianMobilePhone]("""3381234561""") == Some("""3381234561"""))