diff options
author | Max Kellermann <max@musicpd.org> | 2018-11-07 00:28:15 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-11-11 12:55:35 +0100 |
commit | 72184dccfcdf697b0c74ac5dfc1b0e7a7cd114bb (patch) | |
tree | 97f7370c19e14dd90954e63dab2cad7574d05ecb /doc/protocol.rst | |
parent | fee75dc766995d9946af03b40861f19412b5edd9 (diff) |
song/StringFilter: support regular expressions with "=~" and "!~"
This feature requires `libpcre`.
Diffstat (limited to 'doc/protocol.rst')
-rw-r--r-- | doc/protocol.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/protocol.rst b/doc/protocol.rst index b14f12f93..27364b821 100644 --- a/doc/protocol.rst +++ b/doc/protocol.rst @@ -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). |