Ask a Question
Advertise on boostr.in
Organizational Research By
Surprising Reserch Topic
boostr.in questions - Question:Regex Refinement
I'm trying to parse addresses out of blocks of text, and have the following expression to do so:
It will currently parse addresses such as:
300 E. Randolph St. Chicago, IL >> Returns 300 E. Randolph St.
5553 Bay Shore Drive >> Returns input
23 Joseph E Lowery Boulevard >> Returns input
513 Martin Luther King Jr Boulevard >> Returns input
This is exactly what I want. I was wondering, as this is the first expression I have ever written, if there was a way to shorten down the expression or refine it a little?
Sep 13, 2013
Java Interview Questions
Sep 12, 2013
to add a comment.
Related Hot Questions
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
To avoid this verification in future, please