Renamer question

This is a place for users to discuss Altap Salamander. Please feel free to ask, answer questions, and express your opinion. Please do not post problems, bug reports or feature requests here.
mr.pi
Posts: 2
Joined: 26 Apr 2007, 17:11

Renamer question

Post 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 :D
Lukas Cerman
Plugin Developer
Plugin Developer
Posts: 36
Joined: 11 Dec 2005, 20:08
Contact:

Re: Renamer question

Post 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
mr.pi
Posts: 2
Joined: 26 Apr 2007, 17:11

Post by mr.pi »

thanks for the fast answer,

this works great

the pi
Post Reply