#1 2007-10-20 20:57

djbradp1
Member
Registered: 2007-10-20
Posts: 1

Need to Remove text inside brackets

I need to remove [Time ???? Cold] from the following file name:

Artist - Title {BPM 120} [Time 4 02 Cold] [2004].mpg

I can't use the Clean Up Strip Out Contents inside brackets since I also have the year in brackets and I want to keep that. I would like to search for "[Time" and for "Cold]" and delete them including everything in between.

Any Help Is Appreciated... this is the first time using this tool. Very Nice!

-djbradp

Offline

#2 2007-10-20 21:21

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Need to Remove text inside brackets

There a few way for doing this.

The easiest one is to use Replace rule, and its ability to process wildcards:
1) Replace "Time*Cold", use wildcards!
2) Replace " []", without wildcards!

Below is a screenshot of how it works:
http://img512.imageshack.us/img512/7730 … oldnn4.gif

NOTE: first rule will remove anything that matches "Time*Cold", where "*" means any string, so if you have something like "Time Artist - Title {BPM 120} [Time 4 02 Cold] [2004].mpg", the resulting name will actually be "] [2004].mpg", because everything between word "Time" and "Cold" will be removed.

For more sophisticated pattern matching, you'll need to use RegEx rule!

Offline

Board footer

Powered by FluxBB