Operating with 2 sets of brackets ((Part 2))

Hi All,

I have been using the two scripts provided here

in relation to tags with two sets of bracket, and it has been working well, or so I thought! I’ve noticed that the process results in a blank space remaining at the end of each title. So I have two questions:

1: How do I modify the original scripts to prevent them leaving a trailing blank space?

2: What would be the simplest method to batch process an entire folder to remove trailing blanks from all the tags?

Thanks!

Kevin

1: Try $regexp(%TITLE%,(.*) \((\d{4})\)$,$1)
2: Try Convert>Tag-Tag or an action of the type "Format value" for TITLE
Format String: $trim(%title%)

You can filter for files that need treatment:
"$if($eql($len(%title%),$len($trim(%title%))),1,0)" IS "0"

Thanks for the fast reply!

Both those solutions work perfectly!!

Thanks!!

Kevin