Important notice: All Credly Certification exam badges that have been unclaimed for 30 or more days will expire on August 28, 2024. To keep your badges active, log in to your Credly account and claim your badge before the deadline. (Don’t worry, this does not affect your Community badges!)

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 #40: Parsing a HTML File

samN
Feuerball

Regex will never let me down! Pretty happy how compact i was able to make this. I wish that parse would find more than just the first case. Could have limited the number of widgets to 4! ah well, can't have everything. Fun stuff.

 

Spoiler
challenge_40_Pic.JPG
ggruccio
ACE Emeritus
ACE Emeritus

Needed a bit of help getting started - but then got it fairly easily from there.  Lots of parsing.

PhilipMannering
16 - Nebula
16 - Nebula

More XML parse fun times. Solution attached.

 

Spoiler
challenge_40 - Snip.PNG
PhilipMannering
16 - Nebula
16 - Nebula

More XML parse fun times. Solution attached.

 

Spoiler
challenge_40 - Snip.PNG
LandonG
Asteroid

Solution attached.

jasperlch
Quasar

Solution attached.

msicak
Asteroid

another great challenge! I also concatenated the practices together if there was more than 1.

 

Spoiler
challenge40.png
jamielaird
Magnetar

Here's my solution. Thank god for Regex :-)

 

Spoiler
solution_40.png

 

 

Natasha
Comet

Instead of defaulting to regex I decided to use XML parse since I really dislike it and thought it would be a good practice. Also after scrapping a few website recently XML parsing doesn't look so bad anymore. 

 

Spoiler
My results are slightly different compared to output as I concatenated multiple practices for the same physician, while in the output only the first one is captured. 

Screen Shot 2017-12-28 at 00.13.11.png
Waynemk
Asteroid

and another