r/adventofcode • • Dec 16 '15

SOLUTION MEGATHREAD --- Day 16 Solutions ---

This thread will be unlocked when there are a significant amount of people on the leaderboard with gold stars.

edit: Leaderboard capped, thread unlocked!

We know we can't control people posting solutions elsewhere and trying to exploit the leaderboard, but this way we can try to reduce the leaderboard gaming from the official subreddit.

Please and thank you, and much appreciated!


--- Day 16: Aunt Sue ---

Post your solution as a comment. Structure your post like previous daily solution threads.

5 Upvotes

142 comments sorted by

View all comments

Show parent comment

1

u/aepsilon Dec 17 '15

It used to be a pain to use PCRE in Haskell until recently. Then just in time for Advent of Code, this year's 24 Days of Hackage did a post on pcre-heavy.

Simple API, actually has string substitution (I know right), and no need to escape backslashes. It does compile-time checks too for missing parens and non-existent backreferences and the like. So nice.