Discussion thread for day 4 of the Advent of Code : https://adventofcode.com/2020/day/4
I went for some validation within the regex and some in the filter - see the giant custom formula in the filter tool at the end! This one definitely helped my regex skills.
Definitely well suited to Alteryx - always love a good parsing exercise, especially if it includes a little RegEx!
Method 2: Dynamic Formula for the 8-tool win! (Not sure that actually counts as 8 tools since Dynamic Formula is a macro... but whatever.)
Cheers!
NJ
My regex wasn't pretty, but I did get the right answer the first time (so I got lucky)
And here's day 4
Somehow I lost my workflow for this one. Posting this as proof that I got both stars
Edited. Rebuilt the workflow the same way I did the last time. Too many tools, and runs in only 0.6 seconds.
Shrink the data set filter by filter so everything runs faster (lessons from @MarqueeCrew and @Deanna via InspireEU in 2019!)
Day 4 | Remembered regex
I've just caught up with the first 4 days. I'm not sure if it's because of my role (Instructional in nature) or not, but I always tend to use more tools if it makes it clearer.
I used a text input with REGEX validation criteria, same as I would if I was validating all the fields in an incoming file for instance.
Part 2:
Text Input for Validation: