Adding a prefix only to files that are missing the prefix

A swapping-ground for Regular Expression syntax

Adding a prefix only to files that are missing the prefix

Postby NateofCA » Fri Jul 25, 2008 10:03 pm

Thanks for a powerful renaming tool. I have a prefix I want to add to certain files that do not contain the prefix already. It turns out the files missing the prefix all start with a number string and that might make this a little easier to create a Regex for. Yet it would be nice to now the general solution as well for any character string. I've figured out how to create several individual solutions for each beginning string and fortunately there's only about four to search for. But thought maybe there is a way to take care of them all at once. Thanks.
NateofCA
 
Posts: 1
Joined: Fri Jul 25, 2008 8:47 pm

Re: Adding a prefix only to files that are missing the prefix

Postby Admin » Sat Jul 26, 2008 7:50 am

Hi,

Some examples would be good. Having said that, you might be better to apply a selection fileter instead, e.g. "*1.*" or "*2.*" etc.


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


Return to Regular Expressions