Page 1 of 1
Renamer question
Posted: 26 Apr 2007, 17:16
by mr.pi
hello folks,
is it possible to remove everything to the first "-", including the "-"
example: i will remove "artist - " from "artist - album (year)"
thx for reply
the pi

Re: Renamer question
Posted: 26 Apr 2007, 18:39
by Lukas Cerman
mr.pi wrote:hello folks,
is it possible to remove everything to the first "-", including the "-" :?:
example: i will remove "artist - " from "artist - album (year)"
thx for reply
the pi :D
Yes, it is possible. Even, there are two ways to achieve it using regular expressions. Just search for ".*? - " or "[^-]*- " and replace it with nothing.
The first means -- the shortest repetition (*?) of anything (.) followed by " - ".
The second means -- the longest repetition (*) of anything but "-" ([^-]) followed by "- ".
The most parts of regular expression, can be `clicked' from the menu to the right of the `search for' field.
With regards
Lukas Cerman
Posted: 26 Apr 2007, 18:55
by mr.pi
thanks for the fast answer,
this works great
the pi