From 3646a7d122204f2232ab3d8f803a64a256985c0f Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Sat, 17 Jun 2023 12:52:17 -0700 Subject: [PATCH] more docs --- src/ytdl_sub/plugins/regex.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ytdl_sub/plugins/regex.py b/src/ytdl_sub/plugins/regex.py index 6426b5e2..b8d13ea9 100644 --- a/src/ytdl_sub/plugins/regex.py +++ b/src/ytdl_sub/plugins/regex.py @@ -129,6 +129,11 @@ class RegexOptions(PluginOptions): means ``\d`` should be written as ``\\d``. This is because YAML requires an escape for any backslash usage. + If you want to regex-search multiple source variables to create a logical OR effect, you can + create an override variable that contains the concatenation of them, and search that with regex. + For example, creating ``"title_and_description": "{title} {description}"`` then using + ``title_and_description`` to match/exclude from either ``title`` or ``description``. + Usage: .. code-block:: yaml