flexget.plugins.modify.regex_extract module#

class flexget.plugins.modify.regex_extract.RegexExtract[source]#

Bases: object

Updates 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>*?)
on_task_modify(task, config)[source]#
on_task_start(task, config)[source]#
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'}#
flexget.plugins.modify.regex_extract.register_plugin()[source]#