Answers for "qregexpvalidator qlineedit email address"

C++
0

qregexpvalidator qlineedit email address

QRegExp mailREX("\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b");
mailREX.setCaseSensitivity(Qt::CaseInsensitive);
mailREX.setPatternSyntax(QRegExp::RegExp);
qDebug() << mailREX.exactMatch("[email protected]");
Posted by: Guest on November-16-2020

Browse Popular Code Answers by Language