Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: Add support for regular expressions (via =~ and !~) in Library Advanced Search
#1
Moode 8.3.6 introduced support for the comparison operators == and != for all the fields of the Library Advanced Search. Thanks for this update which greatly improves the flexibility of the search function.

Idea: Flexibility could be taken even further by additionally adding support for the comparison operators =~ and !~ which enable pattern matching via regular expressions (https://en.wikipedia.org/wiki/Regular_ex...c_concepts). Note that the syntax is actually the same as for == and !=, so the implementation should in principle be straightforward (see https://mpd.readthedocs.io/en/latest/pro...ml#filters).

Thanks & best regards
Jens
Reply
#2
Sure no prob. I'll add that for the final end-of-year release (Q4).
Btw, PERL regex is already used for the 'lossy' and 'lossless' predefined filters. See inc/music-library.php
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: