how’d you solve it?
# advent-of-code
a
how’d you solve it?
now 🛏️
a
ha! ours were pretty similar
w
is there a reason for not using count{...} ?
j
e
you know that if you use a
"""raw string"""
you don't have to double up your backslashes?
e.g.
Copy code
"""(\d+)-(\d+) (\w): (\w*)""".toRegex()
j
sorta kinda yeah, but I'm used to single-quote escaping and didn't know if IntelliJ would automatically inject regexp language in block quotes. but I just checked and yes it does inject it. so - thanks for the tip 🙂
b
I was wondering about using a regexp destructured, but I forgot the syntax so I would have had to look it up 😄
j
Ah yeah count ! I searched sum* but yeah, count is what I was searching for 🙃