GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Help with rename regex


#1

I'm looking for a simple regex that will remove items inside parentheses, like so:

FROM: "Rolling Stone (Dec. 1983) (48 pages) (Santana)#123.txt"
TO: "Rolling Stone #123.txt"

Many thanks to anyone who can help me improve my limited, mistake-riddled grasp of regular expressions.


#2

Try this in Regular Expression mode.

Old name: (.)([^)])\s*(.)(..)#
New name: \1\2\3

Or try the Dynamic Renamer with the following two options:

-b -w


#3

The regex worked well. Thank you.