SUMMARY It would be nice to be able to get project filters based on regular expressions in addition to the current wildcard/globs. This would be especially useful in the default filters. STEPS TO REPRODUCE 1. Create a new project. 2. Add a regular expression type filter, such as including files by the regex `\.readthedocs\.y[a]?ml` to match both ".readthedocs.yaml" and ".readthedocs.yml" OBSERVED RESULT The filter includes neither expected file EXPECTED RESULT The filter includes both expected files SOFTWARE/OS VERSIONS N/A ADDITIONAL INFORMATION I'm not show how much of a heavy lift it would be to move this over from QRegExp to QRegularExpression at the same time, but it might be worthwhile to do since QRegExp is deprecated in Qt 6.
Wouldn't having both syntaxes be confusing? One more column with the syntax choice would have to be added. I suspect the rare regex use case doesn't justify the effort, code and UI complexity increase. Porting to QRegularExpression is welcome. But it is not straightforward, because QRegularExpression::wildcardToRegularExpression() does not match slashes with '*'. See the discussion here: https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/439#note_623331 So we need to deal with this general issue before porting individual wildcard QRegExp uses.