Hi,
I have a QString of 8 to 9 in length, containing alphabetic letters and digits. I need to check if they contains at least 3 alphabetic letters consecutively using QRegExp (or any other valid way), such as "12AXY359A1", where "AXY" are 3 consecutive letters without digit in between?
Any QString containing 3 or more consecutive alphabetic letters, I need it to returns false, otherwise returns true.
Many thanks.
Added after 1 47 minutes:
Look like QRegExp( "[A-Z]{3,}", Qt::CaseInsensitive ) works.
Bookmarks