Hello!
I am having a problem to validate an e-mail with QRegularExpression.
I am trying with me@me.com an it returns false
Qt Code:
{ bool retorno = true; qDebug() << email; QRegularExpression regex("\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b"); if(!regex.match(email).hasMatch()) { retorno = false; } return retorno; }To copy to clipboard, switch view to plain text mode
Whats is going wrong?
Thanks in advance.
Bookmarks