Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
5.15, 6.2, 6.4.2
-
None
-
-
4b197c3f5 (dev)
Description
I think it would be useful to be able to modify the behaviour of wildcardToRegularExpression so it no longer assumes the wildcard is for file name globbing.
Most of our users can handle using syntax like "*" and "?" but asking them to write perl-style regular expressions is beyond them. It would be nice to be able to convert these simplified wildcard string to QRegularExpressions.
Without reading the code carefully, it would seem this could be implemented as a flag to wildcardToRegularExpression to set starEscape and questionMarkEscape to ".*" and "?" thereby removing the special treatment for file paths.
Attachments
For Gerrit Dashboard: QTBUG-110901 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
460927,5 | QRegularExpression: add support for non-filepath wildcards/globbing | dev | qt/qtbase | Status: MERGED | +2 | 0 |