Check QRegularExpression::match() and QRegularExpression::globalMatch() as well.
QRegularExpression::match()
QRegularExpression::globalMatch()