You just have to split the input by \n\n, and spli...
# advent-of-code
a
You just have to split the input by \n\n, and split each of those by space or newline
d
Good idea! I'll keep that in mind for next time.
a
Thanks! Forgot that you can provide multiple delimeters to split
d
I split on ":" and " " -- didn't think about \n\n
a
Still a good move!
I was just trying to figure out a way to differentiate between passports
And realized that even if there was a newline, there wouldn’t be two newlines in a row
d
totally makes sense now - good thinking!
❤️ 1