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
8 - Asteroid

Gave regex a workout

Spoiler
Tberney_0-1595001807709.png

 

Highlighted
8 - Asteroid

Hi, everyone. Just posted my solution.

 

Then I went to look at the solution provided, and Google decided to block the download: ....yxmd may be dangerous, so Chrome has blocked it".

 

I've downloaded dozens of these and this is the first time this has happened. Anyone else have the experience?

Highlighted
6 - Meteoroid

Solution for Challenge #4

Highlighted
8 - Asteroid

Hi I was thinking the same as you but I found Designer acting strangely... did you find the same? Is it a bug? or am I misunderstanding how RegEx works... please help me understand.

 

This is what I ended up using:

.*(\d{2}-[[:alpha:]]+-\d{2,4}).*|.*(\d-[[:alpha:]]+-\d{2,4}).*|.*([[:alpha:]]{3}\s\d{2},\s\d{4}).*|.*([[:alpha:]]{3}\s\d{1,2}\s\d{4}).*

 

Because it didn't parse  properly when I used this at the beginning

.*(\d{1,2}-[[:alpha:]]+-\d{2,4}).*

 

Also didn't know how to handle the variation where there was a comma and space after the day of month and no comma just a space...  So I just repeated most of the pattern and made another variation.

 

I would lose the first character of the date each time... is it trying to minimize what is matched?  If yes, is there a better way to write this without so much overlap?

Highlighted
8 - Asteroid

This was good learning... I wasn't familiar with RegEx.  My solution used multiple run of the DateTime tool to keep things simple vs formula that might need troubleshooting if things go awry.

Highlighted
Alteryx Partner

Challenge #45

Spoiler
sumanthskumar_0-1595074479304.png

 

Highlighted
7 - Meteor

Pretty sure not the best solution out there. Couldn't figure out the regular expression in one single line so used multiple regular expression and came up with a solution. Any constructive criticism is very appreciated. 

 

 

Spoiler
Challenge 4 solution.PNG

 

Highlighted
5 - Atom

My solution for the Challenge 4.

Highlighted
7 - Meteor
Spoiler
dmhatchell_0-1595613659371.png

 

My RegEx capability is almost non-existent. So I took the first tool in the solution to get the dates out. But otherwise used my own solution for the rest of it.

Highlighted
8 - Asteroid

Had some fun with RegEx on this one and was able to get my parsing down to (A|B).

 

Spoiler
004- Solution.PNG