Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8.0
-
None
-
b3bbba7b871144c5d6f4b1a432f5c2cce02e321f
Description
The regular expression "emailPattern" has no opening parenthesis for the capture group:
{{ static QRegExp emailPattern("\\w\\.@[\\w
.|file://w//]"); }}
should be
{{ static QRegExp emailPattern("(\\w\\.@[\\w
.|file://w//])"); }}
Alternatively, the capture group could be omitted but then the subsequent extractions of the email text must match the whole regexp: cap(0) instead of cap(1). The later solution is probably better because it is simpler.
Regards,
Stuart