Skip to content
Giuseppe Cannella edited this page Feb 19, 2020 · 4 revisions
Type name example
Email1 [email protected]
import com.github.gekomad.regexcollection.Validate.validate             
import com.github.gekomad.regexcollection.Email1                        
                                                                        
assert(validate[Email1]("[email protected]") == Some("[email protected]"))
assert(validate[Email1]("[email protected]") == Some("[email protected]"))   
assert(validate[Email1]("[email protected]") == None)
assert(validate[Email1]("[email protected]") == None)       
assert(validate[Email1](" [email protected]") == None)                     
assert(validate[Email1]("abc,a@%.d") == None)                           
Clone this wiki locally