mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-24 20:37:45 +01:00
7ff27a42ca
The pattern matching is loosely based on foobar2000 pattern syntax, i.e. the notion of escaping characters with ' and optional elements enclosed in square brackets [] is taken from there while the substitution variable names are Perl-ish or sh-ish. The following syntax elements are supported: * escaped literal strings, that is everything that is enclosed within single quotes (like 'this'); * substitution variables, which start with dollar sign ($) and extend until next non-alphanumeric+underscore character (like $This and $5_that). * optional elements enclosed in square brackets, which render nonempty value only if any variable or optional inside returned nonempty value, ignoring literals (like ['['$That']' ]).
674 B
674 B