How to remove defined strings using Regex?

Suppose I have a series of files such as:

Desperate_Housewives___-1x16[real_world.de].avi
Desperate_Housewives___-1x15_-[real_world.de].avi
Desperate_Housewives
-1x19-_hdtv-lol.[BT].avi

Is there a way to delete a defined string.

Such as:
a) remove all underscores _ and hyphens - , no matter where they occur positionally?
b) remove all instances of [real_world.de], no matter where it occurs positionally?

any advice would be appreciated. :slight_smile:

You could use a regexp to do this but you can make life even easier and use Find & Replace mode instead.

You can do it in the rename dialog or, if you're going to be removing the same stuff a lot, create a button which does it in a single press. For example, this button replaces underlines with spaces and leaves the files selected for further renaming:

rename PATTERN="_" TO=" " FINDREP @NODESELECT You can also string several rename commands like that into a single button if you want to find and replace several strings. Use an empty to string (TO="") to remove something completely.

Superb! Thanks very much for the info. Think that sorted that out :slight_smile: :slight_smile: