Advent of Code 2020 - BaseA Style (Day 4)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Discussion thread for day 4 of the Advent of Code : https://adventofcode.com/2020/day/4
- Labels:
- Advent of Code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This was a fun one! Nothing like a little regex in the evening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Love the smell of RegEx in the morning...
Decided to go for pure Regex validation - no tonumber-ings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
My solution at Day04.
Using simple ToNumber function(Off course using RegEx_Match).
As anonymous user #1105310
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
Check out my collaboration with fellow ACE Joshua Burkhow at AlterTricks.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Regex is definitely the way to go here. Kudo's to @cgoodman3 for trying to solve it without using the regex hammer.
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
My Day 4..
Going in "basic user" mode...
BTW... I'd love to see those Regex Expressions you (all) used later...
