community
cancel
Showing results for 
Search instead for 
Did you mean: 
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Weekly Challenge
Do you have the skills to make it to the top? Subscribe to our weekly challenges. Try your best to solve the problem, share your solution, and see how others tackled the same problem. We share our answer too.
Unable to display your progress at this time. Please try again a little later, or contact an administrator if you continue to see this error.
Getting started with Designer? | Start your journey with our new Learning Path!

Challenge #4: Date Parsing

Fun with Regex...

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

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

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

 

 

Atom

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

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!  :)

 

 

Asteroid

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

 

Spoiler
Week 4.png
Alteryx Partner

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

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
Fireball

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