Help with making regular expression
General and Desktop
5
Posts
2
Posters
1.1k
Views
1
Watching
-
-
You are including digits, but you don't want them, right? Then just remove that part.
@
QRegExp reg("[A-Z]{2}");
@ -
Ah, ok. You need to either add space to your regexp, or notify it somehow that you want to parse only whole words (check out the documentation for exact syntax).
Or, you can split your string using space as separator, and then feed all substrings into the regexp.