Skip to content

AsciiString

Giuseppe Cannella edited this page Jan 13, 2019 · 2 revisions
Type name example
AsciiString a1%
import com.github.gekomad.regexcollection.AsciiString              
import com.github.gekomad.regexcollection.Validate.validate        
                                                                   
assert(validate[AsciiString]("テ") == None)                         
assert(validate[AsciiString]("11") == Some("11"))                  
assert(validate[AsciiString]("a1%") == Some("a1%"))                
assert(validate[AsciiString]("Aa1") == Some("Aa1"))                                                                                                                                                             

Clone this wiki locally