-
Notifications
You must be signed in to change notification settings - Fork 0
GermanStreet
Giuseppe Cannella edited this page Jan 13, 2019
·
2 revisions
Type name | example |
---|---|
GermanStreet | Mühlenstr. 33 |
import com.github.gekomad.regexcollection.GermanStreet
import com.github.gekomad.regexcollection.Validate.validate
assert(validate[GermanStreet]("Kaiserallee") == None)
assert(validate[GermanStreet]("Kaiser-Wilhelm-Allee 1aa") == None)
assert(validate[GermanStreet]("1 Kaiserstrasse") == None)
assert(validate[GermanStreet]("Kaiserallee 1") == Some("Kaiserallee 1"))
assert(validate[GermanStreet]("Kaiser-Wilhelm-Allee 1111a") == Some("Kaiser-Wilhelm-Allee 1111a"))
assert(validate[GermanStreet]("Mühlenstr. 33") == Some("Mühlenstr. 33"))