song/StringFilter: support regular expressions with "=~" and "!~"

This feature requires `libpcre`.
This commit is contained in:
Max Kellermann
2018-11-07 00:28:15 +01:00
parent fee75dc766
commit 72184dccfc
13 changed files with 294 additions and 1 deletions

View File

@@ -157,6 +157,11 @@ of:
and are case-sensitive; the `search`
commands specify a sub string and ignore case.
- ``(TAG =~ 'VALUE')`` and ``(TAG !~ 'VALUE')`` use a Perl-compatible
regular expression instead of doing a simple string comparison.
(This feature is only available if :program:`MPD` was compiled with
:file:`libpcre`)
- ``(file == 'VALUE')``: match the full song URI
(relative to the music directory).