[Refactor] Switch to QRegularExpression from QRegExp

I left in debug cruft for nifexpr because it's important that it's easy
to validate it against the old code.