This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Discussion thread for day 4 of the Advent of Code : https://adventofcode.com/2020/day/4
This was a fun one! Nothing like a little regex in the evening.
Love the smell of RegEx in the morning...
Decided to go for pure Regex validation - no tonumber-ings
My solution at Day04.
Using simple ToNumber function(Off course using RegEx_Match).
As anonymous user #1105310
Day 4 solution. Not that much Regex but one big filter for part 2 !
Day 4 - Tried to do it with no regex, but used a regexcount matches as I didn't write out a really long
substring([Field_1],2,1) IN ("0","1","2"..."a","b","c"...) for validating the hair colour.
Also the many filters helped finding the typo much easier than trying to next it to bring the overall tool count down.
Managed to get the right answers but it's clear i need to brush up on my regex syntax 😀
It's really great looking through how different people solve things!
Regex is definitely the way to go here. Kudo's to @cgoodman3 for trying to solve it without using the regex hammer.
Day 4 was interesting and very well suited to Alteryx. Actually probably easier in Alteryx than in a normal programming language.
If anyone wants my solutions, I put them here: https://github.com/NedHarding/Advent2020
My Day 4..
Going in "basic user" mode...
BTW... I'd love to see those Regex Expressions you (all) used later...