Stop using boost's tr1 regex implementation.
tr1 is gone in the upcoming Boost 1.65. Adjust the code by switching to C++11's
<regex> header instead. There is similar code in upstream's git repository, but
it is mixed with a lot of other changes that make it infeasible to backport
them directly.
PR: 220715
Reported by: jbeich