Improve QRegularExpression usage a bit
No need to call optimize(), the pattern will compile with call to isValid() that is done in setMatchRegex.
Use static const for regexes where the pattern is fixed and will never change.
No need to call optimize(), the pattern will compile with call to isValid() that is done in setMatchRegex.
Use static const for regexes where the pattern is fixed and will never change.