Your regular expression will only match uppercase letters. Reread the description of this RE http://www.regular-expressions.info/email.html. Take a look at the other parameters to the QRegularExpression constructor.
Your regular expression will only match uppercase letters. Reread the description of this RE http://www.regular-expressions.info/email.html. Take a look at the other parameters to the QRegularExpression constructor.
Solved
Qt Code:
QRegularExpression regex("^[0-9a-zA-Z]+([0-9a-zA-Z]*[-._+])*[0-9a-zA-Z]+@[0-9a-zA-Z]+([-.][0-9a-zA-Z]+)*([0-9a-zA-Z]*[.])[a-zA-Z]{2,6}$");To copy to clipboard, switch view to plain text mode
Thanks for the reply ChrisW67
Bookmarks