Simple Query - I think!

A swapping-ground for Regular Expression syntax

Simple Query - I think!

Postby 2007-05-16 » Wed May 16, 2007 10:55 am

I have 1000 icon files in GIF format here:

c:\icons\gif\

All of the files have the following naming syntax:

accept01.gif
basket_delete01.gif
bullet_add01.gif
...
zoom01.gif

etc...

Would it be possible to use the Bulk Rename Utility to rename all of the files to:

accept.gif
basket_delete.gif
bullet_add.gif
...
zoom.gif

Thanks

Jim
2007-05-16
 
Posts: 2
Joined: Wed May 16, 2007 10:36 am

Sorry for being lazy

Postby 2007-05-16 » Wed May 16, 2007 1:37 pm

I am sorry for being a lazy no-good layabout.

Instead of posting this vague and irritating query, I read the very good tutorial on the site, and worked out how to do it myself.

A very excellent application. Thank you.

Sorry once again for wasting your time.
2007-05-16
 
Posts: 2
Joined: Wed May 16, 2007 10:36 am

Postby Admin » Wed May 16, 2007 2:25 pm

No problem. Sorry, you replied to your own post before I could :-)


Jim
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm

Postby Stefan » Thu May 17, 2007 11:22 am

Hi '2007-05-16'-Jim,

welcome aboard.

Fine you found an solution!

Maybe you want to share your how-to
so others who have the same problem
and looking in this thread can solve it too?


Thank you
Stefan
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Postby bobkoure » Wed May 30, 2007 5:02 pm

On the off chance the solution found wasn't a regex one (and this is a regex forum) - here it is as regex

from
^(.*)\d+
to
\1

[edit]
or even
(\D+)
to
\1

which is about as terse as it's going to get
[/edit]
bobkoure
 
Posts: 16
Joined: Mon Jul 10, 2006 5:38 pm


Return to Regular Expressions