- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
USstreets
        Giuseppe Cannella edited this page Feb 19, 2020 
        ·
        2 revisions
      
    | Type name | example | 
|---|---|
| USstreets | C/O John Paul, POBox 456, Motown, CA 96090 | 
import com.github.gekomad.regexcollection.USstreets                                                                                            
import com.github.gekomad.regexcollection.Validate.validate                                                                                    
                                                                                                                                               
assert(validate[USstreets]("123 Park Ave Apt 123 New York City, NY xxx") == None)                                                              
assert(validate[USstreets]("123 Park Ave Apt 123 New York City, NY 10002") == Some("123 Park Ave Apt 123 New York City, NY 10002"))            
assert(validate[USstreets]("C/O John Paul, POBox 456, Motown, CA 96090") == Some("C/O John Paul, POBox 456, Motown, CA 96090"))