Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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

steven4320555
8 - Asteroid

A lot of try and error to learn some regex.

 

Spoiler
steven4320555_0-1585760295358.pngsteven4320555_1-1585760408367.png

 

16/17

I had some difficulties in controlling 1-2 digits. My understanding is /d{1,2} suppose to mean 1 or 2 digits, but it is not working as I thought. 

Something highly related to data-time. I used to use dd mm yyyy... now, I know % 

"Specifiers always begin with a percent sign (%), followed by a case-sensitive letter. The data must include at least a two digit year." ref:

https://help.alteryx.com/11.0/Reference/DateTimeFunctions.htm

 

 

Kale_Malcom
8 - Asteroid
Spoiler
Kale_Malcom_0-1585779982482.png

 

my regex is no where near as elegant as the provided solution, but as a regex beginner I was happy to get mine to work and get the dates right.

Anood
7 - Meteor

my solution  

igorp
8 - Asteroid
Spoiler
igorp_0-1586464409083.png

 

Thanks for this one!

 

I took a bit less RegEx-heavy approach but it still works 🙂

grossal
15 - Aurora
15 - Aurora

Time to work on these challenges 😃

 

Spoiler
grossal_0-1586514021930.png

 

Not really clean this time.

cneivam
9 - Comet
Spoiler
I used an interesting expression for months ==> (Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s(\d+)\s(\d\d\d\d)

Hello everybody. Very interesting this one!

 

Follow attached my solution!

Regards.

Neivam

Sudha8990AI
8 - Asteroid

Good Exercise for date parsing.

 

Thanks,

Sudhakar S 

Chirag09goa
7 - Meteor

Great to get exposed to RegEx. Very limited ways, other then RegEx, to efficiently parse the string and extract date especially with multiple format

 

Solution Attached

KevinTang
8 - Asteroid

Done

Ben_Jeffreys
8 - Asteroid

My submission