#1 2008-01-21 06:19

Fiorello
Member
Registered: 2008-01-21
Posts: 10

Remove text until "-" (dash)

Hello everybody!

I would like to remove text from files until " - " like in the string "Sting - All This Time.mp3" - so there remains just "All This Time.mp3".

Could anybody tell me how to realize with Renamer?

Many thanks in advance!
Fiorello

Offline

#2 2008-01-21 12:03

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Remove text until "-" (dash)

Fiorello wrote:

I would like to remove text from files until " - "
like in the string "Sting - All This Time.mp3"
- so there remains just "All This Time.mp3".

Fiorello

Hi Fiorello, welcome smile

If you have only files like your example (and with one dash only) you could use this RegEx-Rule


.+ - (.+)
This means: Find all .+ till space-dash-space(and the rest)

Replace with what is in "the rest" by using $1


ReNamer-delete_till_Underscore.png

If you have file names with an other structure then your given example this RegEx may fail roll



HTH? tongue

See you...


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2008-01-21 14:53

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

Re: Remove text until "-" (dash)

Hi Fiorello smile

You can simply use the Delete rule, from position 1, until the delimiter " - ". As easy as that.

P.S. Stefan, don't be scaring away new users with RegEx just yet tongue

Offline

#4 2008-01-21 18:09

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Remove text until "-" (dash)

den4b wrote:

Hi Fiorello smile

You can simply use the Delete rule, from position 1, until the delimiter " - ". As easy as that.

smile very fine!


P.S. Stefan, don't be scaring away new users with RegEx just yet tongue

This may be meant as fun, but is very true as well! Of course you're right. ReNamer have many power features without need power user to work well.
(on the other hand i though you where away for longer and so i think my answer was better then nothing big_smile)


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#5 2008-01-21 18:50

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

Re: Remove text until "-" (dash)

Stefan wrote:

P.S. Stefan, don't be scaring away new users with RegEx just yet tongue

This may be meant as fun, but is very true as well! Of course you're right. ReNamer have many power features without need power user to work well.
(on the other hand i though you where away for longer and so i think my answer was better then nothing big_smile)

I only meant it as a joke, even tho there is a bit of truth in it wink

Anyway, quick and dirty answer is sure better than no answer!

Offline

#6 2008-01-23 11:59

Fiorello
Member
Registered: 2008-01-21
Posts: 10

Re: Remove text until "-" (dash)

Wow, many thanks for your great help!!! Good Job! Keep on goin'! smile
Fiorello

Offline

Board footer

Powered by FluxBB