Rename function - experts needed ... again

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
Tim
Posts: 46
Joined: 28 Jan 2006, 13:28
Location: Berlin

Rename function - experts needed ... again

Post by Tim »

Dear Experts,

One more humble request from me.
How do I make the following rename change?
Replace this "-(textwithinbrackets).mp3" with ".mp3"?
I want to get rid of "-(textwithinbrackets)".

Example:
Doyle, A C_Silver Blaze_BBC_1992-(edited).mp3
>
Doyle, A C_Silver Blaze_BBC_1992.mp3

The text within brackets may vary.
I need a universal formula.

Thanks for any help in advance
Tim
User avatar
ino
Posts: 440
Joined: 09 Dec 2005, 14:59
Location: Brno, Czech Republic

Re: Rename function - experts needed ... again

Post by ino »

Tim wrote:Dear Experts,

One more humble request from me.
How do I make the following rename change?
Replace this "-(textwithinbrackets).mp3" with ".mp3"?
I want to get rid of "-(textwithinbrackets)".

Example:
Doyle, A C_Silver Blaze_BBC_1992-(edited).mp3
>
Doyle, A C_Silver Blaze_BBC_1992.mp3

The text within brackets may vary.
I need a universal formula.

Thanks for any help in advance
Tim
Use Renamer pluging - select one or more files you want to rename and hit Ctrl+Shift+R
- Into field "Search for:" type exactly following characters:

Code: Select all

-\(.*\)
- select "Regular expression" checkbox (must be checked)
- now you can preview results in "New Name" column
- hit "Rename" button or just hit Enter
Attachments
rename.png
rename.png (23.08 KiB) Viewed 4130 times
Tim
Posts: 46
Joined: 28 Jan 2006, 13:28
Location: Berlin

Re: Rename function - experts needed ... again

Post by Tim »

Many, many thanks, Ino!
Works like a charm.

Happy holidays
Tim
Post Reply