03-10-2021, 09:37 PM
Thanks for the hint, Tim!
Indeed it is possible, yet with a trick to circumvent the standard behaviour of the Advanced Search web interface.
The trouble with the current interface is that it puts each search string into a "contains" context. To enable regular expressions, however, it is necessary to use "=~" instead.
Fortunately the interface can be cheated:
Thanks again & best regards
Jens
Indeed it is possible, yet with a trick to circumvent the standard behaviour of the Advanced Search web interface.
The trouble with the current interface is that it puts each search string into a "contains" context. To enable regular expressions, however, it is necessary to use "=~" instead.
Fortunately the interface can be cheated:
- When you enter <some-string> into the Folder field, it is internally translated into (file contains '<some-string>').
- Since the contents of <some-string> is not restricted, it is possible to enter
nas') AND (file =~ 'nas/nas-station/music/(some-folder|other-folder)
- Which gets translated into
(file contains 'nas') AND (file =~ 'nas/nas-station/music/(some-folder|other-folder)')
- Bingo, it works!
Thanks again & best regards
Jens