Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

qregexpvalidator qlineedit email address

QRegExp mailREX("[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}");
mailREX.setCaseSensitivity(Qt::CaseInsensitive);
mailREX.setPatternSyntax(QRegExp::RegExp);
qDebug() << mailREX.exactMatch("me@me.com");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #qregexpvalidator #qlineedit #email #address
ADD COMMENT
Topic
Name
9+4 =