Page 1 of 1

How to strip the first 2 characters of file names???

Posted: 12 Sep 2007 11:14
by MHoefler
Hi!

I'd like to strip the first two characters of a list of MP3 files. How can I achieve that? I tried the regular expressions and Search & Replace, but neither of them seems to work.

Thanks,
Martin

Posted: 12 Sep 2007 13:04
by TheQwerty
Using regular expressions this should work

Code: Select all

..(.*)>$1

Posted: 12 Sep 2007 13:55
by MHoefler
Thanks, this does work! But man this is complicated! Where can I find an explanation of the syntax used here?

Thanks!

Posted: 12 Sep 2007 14:53
by Gandolf
One source that comes to mind is Regular expression info http://www.regular-expressions.info/ but there are many others.

Posted: 15 Sep 2007 13:24
by MHoefler
Thanks!

Still it would be nice if so trivial tasks like stripping a fixed number of chars could be done without having to study rocket sicience first ;-)

Regards!

Posted: 15 Sep 2007 13:58
by Gandolf
Actually, there is a non "rocket sicience" way to do what you want. Have a look at Lupas Rename ( http://rename.lupasfreeware.org/ ), it has an option to left crop n characters.

Posted: 15 Sep 2007 17:54
by TheQwerty
Gandolf wrote:Actually, there is a non "rocket sicience" way to do what you want. Have a look at Lupas Rename ( http://rename.lupasfreeware.org/ ), it has an option to left crop n characters.
That's a great little program, which I was using it before I found XY.