consider using QRegularExpression instead