Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #20: List Parsing

rmassambane
10 - Fireball
 
Chantelb
9 - Comet
Spoiler
Chantelbbr_0-1577080507832.png
JonathanW
8 - Asteroid

Great Regex Practice. This one took me a while.

 

JonathanW_0-1578354588640.png

mdodrajka
8 - Asteroid

Phew!!! 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.

 

Spoiler
Challenge_20_Mdodrajka.PNG

andypick
8 - Asteroid

solution attached

Spoiler
Capture.PNG
terry10
11 - Bolide

 

RegEx! 🙂  I managed to parse a few more phone numbers from the address field than the solution did. - terry10

 

challenge 020 diff ss.PNG

Spoiler
challenge 020 ss.PNG

 

MadsAdrian
7 - Meteor

This one was painful! 

 

Spoiler
wc020.PNG


My final RegEx for the address/phone parse. 
^(.*(?:, [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

delilah
8 - Asteroid
Spoiler
キャプチャ.JPG
JTCairns
8 - Asteroid

Ouch!

mikeprice17
8 - Asteroid

Hardest Challenge for me yet