Switch over to using RE2 from C++11 regex since gcc < 4.9 doesn't
properly support them.