Okay, I was hoping for a cleaner way to express this so we don't have to cargo-cult that regex everywhere and it's a little more obvious that we're going line-by-line. But that's quite a PITA, so this should be okay.