Skip to content

Instantly share code, notes, and snippets.

@gravelld
Last active July 4, 2017 10:20
Show Gist options
  • Save gravelld/184e1e78d27ec86ad98040ece8e44d8b to your computer and use it in GitHub Desktop.
Save gravelld/184e1e78d27ec86ad98040ece8e44d8b to your computer and use it in GitHub Desktop.
A custom regex rule for bliss which moves "The" to the end of an artist name. As documented at https://www.blisshq.com/music-library-management-blog/2017/07/04/reordering-the-artist-name/
# Looks for artist names starting with "The" and moves it to the end of the artist name string
rule sortorderthe with label "Move 'The' to end of artist names" has alternatives
SUFFIX {
find /^(?i)(The)\s(.*)$/ replace with "$2, $1"
}
applies to artist, album_artist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment