I’m trying to write a regular expression for a street address. Example: 124 Street
I’m not really sure how to go about this. So far I have something that looks like this
^[0-9][a-zA-Z]$.
However this is not working. Any help would be greatly appreciated.
Thanks!
I’m trying to write a regular expression for a street address. Example: 124 Street
Share
^[0-9][a-zA-Z]$will match a single digit followed by a single letter.If you want to match any non-empty string consisting of only letters, digits, spaces and periods, use
If you want to match (a string of digits and a space) optional, followed by a string of letters and spaces, that would be