double-backslash
This commit is contained in:
parent
1e24474904
commit
06309bae35
1 changed files with 6 additions and 4 deletions
|
|
@ -105,8 +105,9 @@ class RegexOptions(PluginOptions):
|
||||||
r"""
|
r"""
|
||||||
Performs regex matching on an entry's source variables. Regex can be used to filter entries
|
Performs regex matching on an entry's source variables. Regex can be used to filter entries
|
||||||
from proceeding with download or capture groups to create new source variables. NOTE to
|
from proceeding with download or capture groups to create new source variables. NOTE to
|
||||||
use backslashes anywhere in your regex, i.e. `\d`, you must add another backslash escape,
|
use backslashes anywhere in your regex, i.e. ``\d``, you must add another backslash escape. This
|
||||||
meaning `\d` becomes `\\d`. This is because YAML requires an escape for any backslash usage.
|
means ``\d`` should be written as ``\\d``. This is because YAML requires an escape for any
|
||||||
|
backslash usage.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
|
|
||||||
|
|
@ -124,9 +125,10 @@ class RegexOptions(PluginOptions):
|
||||||
# For each entry's `title` value...
|
# For each entry's `title` value...
|
||||||
title:
|
title:
|
||||||
# Perform this regex match on it to act as a filter.
|
# Perform this regex match on it to act as a filter.
|
||||||
# This will only download videos with "Official Video" in it.
|
# This will only download videos with "[Official Video]" in it. Note that we
|
||||||
|
# double backslash to make YAML happy
|
||||||
match:
|
match:
|
||||||
- '\[Official Video\]'
|
- '\\[Official Video\\]'
|
||||||
|
|
||||||
# For each entry's `description` value...
|
# For each entry's `description` value...
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue