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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
MHoefler
Posts: 24
Joined: 12 Sep 2007 11:11

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

Post 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

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post by TheQwerty »

Using regular expressions this should work

Code: Select all

..(.*)>$1

MHoefler
Posts: 24
Joined: 12 Sep 2007 11:11

Post by MHoefler »

Thanks, this does work! But man this is complicated! Where can I find an explanation of the syntax used here?

Thanks!

Gandolf

Post by Gandolf »

One source that comes to mind is Regular expression info http://www.regular-expressions.info/ but there are many others.

MHoefler
Posts: 24
Joined: 12 Sep 2007 11:11

Post 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!

Gandolf

Post 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.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Post 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.

Post Reply