Weekly Challenge

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

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Challenge #4: Date Parsing

Highlighted
16 - Nebula
16 - Nebula

Fun with Regex...

Spoiler
2017-10-04_20-31-03.jpg
Highlighted
Alteryx Partner
 
Highlighted
12 - Quasar

I really needed this practice in data parsing. Day by day i'm learning this syntax better

Highlighted
8 - Asteroid

Solution attached,

 

Real nasty one this one, didn't think it was worth making anything re-useable, just got what I needed.

 

There's a video about the Alteryx Analytics gallery where someone (can't remember his name) talks about including some python date parsing tool. Sounds cool, didn't have time to hook it up but would have been nice to see it here.

 

Thanks,

 

Michael

 

 

6 - Meteoroid

I had to go back to school on RegEx before even attempting this challenge - my result is attached

Highlighted
7 - Meteor

First time posting a challenge. I knew nothing about RegEx walking into the challenge. I reviewed various solutions, comments, and my friend, Alteryx Help Center. I normally wouldn't share since I did not solve this on my own. However, I learned a lot through this, so I was able to figure out a slight variation with my RegEx Expression. I got excited!  :)

 

 

Highlighted
8 - Asteroid

Finally finished this one, what a doozy! First time playing with RegEx.

 

Spoiler
Week 4.png
Highlighted
Alteryx Partner

Solved, although the dates remain in "field1" (also in the proposed solution so I'm keeping them...)

Highlighted
Alteryx Certified Partner

I used regex to extract the dates, then the datetime parse tool to tidy up - I learned that you can use a wildcard * in the datetime parse tool which is pretty nifty!

Regex used was  \d{1,2}\-\w+\-\d{2,4}   | (or)   \d{1,2}\s\w+\s\d{2,4}     | (or)   \w{3}\s\d{1,2},?\s\d{4}

 

Spoiler
1.png
Highlighted
10 - Fireball

Much more brute force than i would have liked. too bad there is no date/time detector.