[solved] help removing timestamps from lyrics tags

i have some songs that have synced lyrics tags and i prefer unsynced lyrics.

To change them all you do is remove the timestamp from the lyrics (this bit at the start of each line [00:19.21])

$set(lyrics,$rreplace(%lyrics%,[\\[0-9:0-9\\]],))

i have this tagger script and it works except it will also remove any instance of [0-9] regardless of whether it has that colon in the middle.

[00:12.32] Line of text from song [2025]

The code i have will remove the timestamp at the front and the [2025] at the end. How do I stop my script from deleting anything that is not the timestamp?

Off the top of my head and totally untested, try:

$set(lyrics,$rreplace(%lyrics%,\\[[0-9]*:[0-9]*\\.\\],))

thank you for the help, but i ended up figuring this out.

$set(lyrics,$rreplace(%lyrics%,\\[\\d+:\\d+\\.\\d+\\],))

2 Likes