I gave up my own recursive regex solution and seek instaparse for help.
Part 2 turned out to be much fast for me to manually figure out which allergen is which since the search space is very small.
I gave up my own recursive regex solution and seek instaparse for help.
Part 2 turned out to be much fast for me to manually figure out which allergen is which since the search space is very small.