DEV Community

Discussion on: What I've learned from the Advent of Code so far (days 1-5)

Collapse
 
syentix profile image
syentix

I don't know why but my first thought with the validation on day 4 was RegEx

Collapse
 
minna_xd profile image
Minna N.

Oh yes, I would've done regex but I didn't know how. 🙈 I'd come across regex in a search and replace usage only. I've improved a lot of my code "retroactively" so I'll probably look into regex solution as well because I like regex. 😄

Collapse
 
minna_xd profile image
Minna N.

Such luck: there is a post titled "How to use Regular Expressions in JavaScript" under Trending on DEV. Gotta check that out.

Thread Thread
 
syentix profile image
syentix

Regex is something yeah :D this site is great for testing out statements, also has useful tips :)

Thread Thread
 
minna_xd profile image
Minna N.

Thanks for the link!

Thread Thread
 
lucasqueiroz profile image
Lucas Queiroz

RegexEr is the best!
I highly recommend learning Regex, it will be very handy one day or another! And I don't even mean the more advanced features, just the basics would be a huge step forward!
You did an awesome job on days 1-5. Hoping to hear again on 6-[...]!