Skip to content

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"))                                                                              
Clone this wiki locally