Skip to content

Instantly share code, notes, and snippets.

@phw
Last active June 17, 2024 16:10
Show Gist options
  • Save phw/7ff4ab97252b4f24881105aefcf74803 to your computer and use it in GitHub Desktop.
Save phw/7ff4ab97252b4f24881105aefcf74803 to your computer and use it in GitHub Desktop.
Picard scripts to move featuring
$set(_feat_regex,\\s+\\\(?\(\(?:feat\\.|featuring|with\)\\s+[^\)]+\)\\\)?)
$set(_feat,$rsearch(%artist%,%_feat_regex%))
$set(artist,$rreplace(%artist%,%_feat_regex%,))
$set(title,$if(%_feat%,%title% \(%_feat%\),%title%))
$set(artist,$rreplace(%artist%,\\s+\\\(?\(\(?:feat\\.|featuring|with\)\\s+[^\)]+\)\\\)?,))
$set(title,$rreplace(%title%,\\s+\\\(\(\(?:feat\\.|featuring|with\)\\s+[^\)]+\)\\\),))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment