[Qalculate Backend] Port QRegExp to QRegularExpression
Port QRegExp::exactMatch() by anchoring the pattern, with ^ and $, with
QRegularExpression.
Tweak the QRegularExpression pattern used with "currentCmd".
Declare variables right before they're used.