Description |
The original pattern was:
^[ \w]{3,}([A-Za-z]\.)?([ \w]*\#\d+)?(\r\n| )[ \w]{3,},\x20[A-Za-z]{2}\x20\d{5}(-\d{4})?$
I changed the regular expression to allow a few different options. I like what you created here, but wanted to change the pattern to only allow for the capitol letters with an ending period after the state. I also thought it would be nice to allow the expression to show the possible option of direction with for example North, South, East or West with an ending period at the end of it. ^[ \w\.]{3,}([A-Za-z]\.)?([ \w]*\##\d+)?(\r\n| )[ \w]{3,},\x20([A-Z]{2}\.)\x20\d{5}(-\d{4})?$ Although the code was not altered much, it reflects the changes I find necessary for my needs. |