Unsolved How to make impossible digit input in QRegex
-
HI, My regex QRegExp regexp("^[A-Za-z]+((\s)?(('|-|.)?([A-Za-z])+))*$"); hope your ideas will help
-
- Don't use QRegExp, use QRegularExpression
- Either escape
\
or use raw string literals .
matches any char, including numbers,\.
matches the dot (this is the root of your problem btw)- you can debug regular expressions here https://regex101.com/
-
Hi,
In addition to what @VRonin wrote, there's the RegularExpression Example that provides an editor/tester for QRegularExpression.