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

srahulelite
5 - Atom

Here is my Solution, a bit different from original one but working fine.

siddharth_28
8 - Asteroid

Re: Challenge #4: Date Parsing

gerda
8 - Asteroid
Spoiler
challenge 4.png

Here's the solution!

chukleswk
11 - Bolide

Used several different regexes to break it out. Was great practice!

 

Spoiler
Challenge_4.PNG

Sundusjamaal
7 - Meteor
Spoiler
Sundusjamaal_0-1659677021736.png


regex = (\d+.+?\d+)|(\w{3}\s\d{2},\s\d{2,4})|(\w{3}\s\d{1}\s\d{4})

aman_sagar
5 - Atom

It's a little bit redundant but it works just fine!!

aman_sagar_0-1660136528235.png

 

I used two regex:

(\d{1,2})-(\u{3,4})-(\d{2,4})

and 

(\u{3,4})\s(\d{1,2})[,\s]+(\d{2,4})

MatthieuPons
7 - Meteor
Spoiler
MatthieuPons_0-1660226663560.png

 

Simple and complex, good for train ourself in the date format and the regex skills

Nicholas_White
8 - Asteroid

4th challenge today!

 

 

Spoiler
vitaminman12_0-1660721438623.png

 

Thanks,

 

Nick

Nadia_Bonner
8 - Asteroid
Spoiler
Nadia_Bonner_0-1660740414385.png

 

JBarr
8 - Asteroid

Done.