Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAGood parsing practice. Of course, there could be a problem if the City name started with "St" as in "St Louis" - would be hard to differentiate between "Street" and "Saint", though I suppose you could look for two consecutive instances of "St" in that case
Was struggling with figuring out how to do a switch, when saw idea about replacing text with a pipe. Instead, I changed all street types (e.g. Avenue, Circle, etc) to Street. Then it was a simple parsing from that point.
Probably should learn RegEx....
I believe this can be done with a single RegEx tool.
Looking forward to seeing solutions with fewer tools!
Spent a lot more time fiddling with the RegEx than I'd have liked, but the good thing is after stopping to figure out why it wasn't parsing the Zip the way I wanted, I had a good takeaway that will continue to help me as I think through RegEx going forward!
Hi All,
Please find my Result below.
Thanks
Mat
My solution with durth regex