D26215: Port QRegExp to QRegularExpression

Elvis Angelaccio noreply at phabricator.kde.org
Sun May 3 16:22:53 BST 2020


elvisangelaccio added a comment.


  In D26215#658092 <https://phabricator.kde.org/D26215#658092>, @ahmadsamir wrote:
  
  > In D26215#657701 <https://phabricator.kde.org/D26215#657701>, @elvisangelaccio wrote:
  >
  > > What about `QRegularExpression::wildcardToRegularExpression()` ? Could we use that? Note that the filter string comes from user input (i.e. from the filter bar).
  >
  >
  > I've just tested; it can be used, with the same caveat as the QRegExp docs have about WildcardUnix, a wildcard can't be escaped with a \:
  >  *.txt    would show all files with a .txt extension
  >
  > - would show all files \*       _won't_ show files with a literal "*" in their names
  >
  >   Looks good enough to me, if you agree I'll update the diff.
  
  
  `\*` doesn't seem to work even now, so go for it.

REPOSITORY
  R318 Dolphin

REVISION DETAIL
  https://phabricator.kde.org/D26215

To: ahmadsamir, #dolphin, elvisangelaccio, meven
Cc: kfm-devel, azyx, nikolaik, pberestov, iasensio, aprcela, fprice, fbampaloukas, alexde, Codezela, feverfew, meven, spoorun, navarromorales, firef, ngraham, andrebarros, emmanuelp, rdieter, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20200503/faad9483/attachment.htm>


More information about the kfm-devel mailing list