Skip to content

AsciiString

Giuseppe Cannella edited this page Feb 19, 2020 · 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