How can I swap text before and after a character? (see example)


#1

Hi guys

On a bunch of sermon mp3s (that were already tagged when I got em), I want to swap text before and after a character:

Original titles:
God's Intent for Marriage Part 1 = Matthew 19'3-6
God's Intent for Marriage Part 2 = Matthew 19'3-6
God's View of Divorce Part 1 = Matthew 19'7-9
God's View of Divorce Part 2 = Matthew 19'7-9

How I want them to look:
Matthew 19'3-6 - God's Intent for Marriage Part 1
Matthew 19'3-6 - God's Intent for Marriage Part 2
Matthew 19'7-9 - God's View of Divorce Part 1
Matthew 19'7-9 - God's View of Divorce Part 2

Is there an action I can create to swap/shift text like this after a certain character?
(in this case the = symbol)

Thanks in Advance


#2

If you have read through the forum, you would have find many hits regarding the question "How to swap ... " and there are many proposals how to do it, for example ...

Action "Format value" along with the $regexp() function:
Tag field: TITLE
Format string: $regexp(%TITLE%,'^(.+?) = (.+?)$','$2 - $1')

DD.20100626.1159.CEST


#3

Action "Format value" along with the $regexp() function:
Tag field: TITLE
Format string: $regexp(%TITLE%,'^(.+?) = (.+?)$','$2 - $1')

Thanks DetlevD... you are always helpful. :slight_smile: