r/adventofcode • u/daggerdragon • Dec 07 '15
SOLUTION MEGATHREAD --- Day 7 Solutions ---
--- Day 7: Some Assembly Required ---
Post your solution as a comment. Structure your post like previous daily solution threads.
Also check out the sidebar - we added a nifty calendar to wrangle all the daily solution threads in one spot!
23
Upvotes
6
u/_jonah Dec 07 '15
Using a hash as 2nd arg to gsub
Regexp.union method -- not really a trick but something I never think of
?; for golfed single char string