Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.14
-
None
Description
A pattern containing "( ? )" (the spaces are added to display ? correctly in this nice HTML editor/whatever) isn't reported an invalid by QRegularExpression, which is technically correct, but it's useless as it doesn't do anything and indicates that the user is somehow making a mistake.
IIUC, "( ? )" might be treated like (?is), but since it's empty it doesn't have any effect. I don't know how to best handle that, it is valid, but not "correct". (Not really a bug report, sorry).