#1 2006-08-03 16:05

frost
Member
Registered: 2006-08-03
Posts: 5

How replace digits in the name of folder?

Here is an example.
There are some folders:
---------------------------------
one-1990
two-1980
three-1970
--------------------------------
How replace digits from last position to first position?

1990-one
1980-two
1970-three

It could be great doing this operation without terrible script.
Sorry for my english.
Thanks.

Offline

#2 2006-08-03 16:35

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

Re: How replace digits in the name of folder?

Yes, you can do it using RegEx rule:

expression: (.*)-(.*) and replace: $2-$1

That will work for your examples smile

Offline

#3 2006-08-03 22:50

frost
Member
Registered: 2006-08-03
Posts: 5

Re: How replace digits in the name of folder?

Thanks a lot.
I've got it.
I like it and now will use it again and again for rename my huge mp3 collection.
I think thread must be closed.
Thanks again.
----------------------------------------
frost, Russia.

Offline

Board footer

Powered by FluxBB