0

Что не так, почему не работает, не находит?

QString str = "[]";
QRegularExpression reg1("\[\]");
QRegularExpressionMatch match = reg1.match(str);
if (match.hasMatch()) {
    qDebug() << "true";
}
3

0

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Посмотрите другие вопросы с метками или задайте свой вопрос.