Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAPhew!!! finally was able to create the solution. This is longest I've taken to solve any weekly challenge. Used a log of RegEx to get the output. When compared to the posted solution, I realized that my approach was complicated, none the less, was able to solve it.
solution attached
RegEx! 🙂 I managed to parse a few more phone numbers from the address field than the solution did. - terry10
This one was painful!
^(.*(?:, [A-Z]{2}(?: {1,2}(?:\w{5,6}|\d{3} \d{3}))?(?:[- ]\d{4}|-?)?))? *((?:\w{3}[-.]?\w{3}[-.]?\d{4,5}|\d-\d{3}-\d{3}-\d{4}|\d{12})(?: EXT \d{2,4}| ?x ?\d{1,4})?)?$
RegEx tester session: https://regex101.com/r/bHrkbs/3