Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
Free Trial

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 #4: Date Parsing

jdunkerley79
ACE Emeritus
ACE Emeritus

Fun with Regex...

Spoiler
2017-10-04_20-31-03.jpg
danfarmerTIL
6 - Meteoroid
 
JoshKushner
12 - Quasar

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

michael_d
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

 

 

JoeT
6 - Meteoroid

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

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

 

 

aclaxton
8 - Asteroid

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

 

Spoiler
Week 4.png
dsmdavid
11 - Bolide

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

peter_gb
10 - Fireball

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
samN
10 - Fireball

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