flexget.plugins.modify.regex_extract module#
- class flexget.plugins.modify.regex_extract.RegexExtract[source]#
Bases:
objectUpdates an entry with the values of regex matched named groups.
Usage:
regex_extract: field: <string> regex: - <regex> [prefix]: <string>
Example:
regex_extract: prefix: f1_ field: title regex: - Formula\.?1.(?P<location>*?)- schema = {'properties': {'field': {'type': 'string'}, 'prefix': {'type': 'string'}, 'regex': {'oneOf': [{'items': {'format': 'regex', 'title': 'single value', 'type': 'string'}, 'minItems': 1, 'title': 'multiple values', 'type': 'array', 'uniqueItems': False}, {'format': 'regex', 'title': 'single value', 'type': 'string'}]}}, 'type': 'object'}#