-
released this
2024-09-29 17:41:09 +02:00 | 204 commits to master since this releaseRegex plugin has been removed in favor of scripting. The function regex_capture_many has been created to replicate the plugin's behavior. See the following converted example:
regex, now deprecatedregex: from: title: match: - ".*? - (.*)" # Captures 'Song' from 'Emily Hopkins - Some - Song' capture_group_names: - "captured_track_title" capture_group_defaults: - "{title}" overrides: track_title: "{captured_track_title}"scripting equivalentoverrides: # Captures 'Song' from 'Emily Hopkins - Some - Song' captured_track_title: >- { %regex_capture_many( title, [ ".*? - (.*)" ], [ title ] ) } track_title: "{%array_at(captured_track_title, 1)}"Motivation:
Regex was a unique plugin that added custom variables based on user input. This made the backend need to support both
overridesand 'plugin user variables'. Removingregexplugin will consolidate this logic into onlyoverrides, making it much easier to maintain.Downloads
-
Source code (ZIP)
1 download
-
Source code (TAR.GZ)
1 download
-
Source code (ZIP)