Page 1 of 1

number find and replace

Posted: Fri Jul 28, 2006 12:31 pm
by debba
Hi,
I have a lot of images that I must replace with only one,

Here is an example
01-ca_arr-bk-1_0000.gif
01-ca_arr-bk-1_0001.gif
01-ca_arr-bk-1_0002.gif
01-ca_arr-bk-1_0003.gif
01-ca_arr-bk-1_0004.gif
and so on

I must replace with
01-ca_arr-bk-1.gif

I tried with metacharacters \d using this expression 01-ca_arr-bk-1_\d.gif , but it din't work.

Can anybody out there that can help me?
Please is very important.
Thank you.

Posted: Fri Jul 28, 2006 3:13 pm
by Abacre
Hi,

You are almost right. But \d means one char (one digit in your case).
So you have to use \d+ where + means "one and more" chars.
Therefore the final expression will be:

Search for:
01-ca_arr-bk-1_\d+.gif

Replace with:
01-ca_arr-bk-1.gif

That's all I verified it works perfectly.

Posted: Fri Jul 28, 2006 4:35 pm
by debba
Yeah we search for:
01-ca_arr-bk-1_\d+.gif

but i'didn't work anyway.

To be sure we use dreamweaver to see if any html file was linked to one of those gif, and they were!
How can it be possible that Advanced Find and Replace did not find them?

Is it possible that the problem could be in Option impostation?In the tab Batch Replace we have selected:MODIFIER I, MODIFIER M.

Anyway thank you for your support.
I hope you can help me.

Posted: Fri Jul 28, 2006 6:20 pm
by Abacre
Could you send us (support@abacre.com) a sample file and resulting
file (how it should be). We will check it out and send you default.cfg
file with needed settings.
As I said it worked fine on our computers. Values of modifiers I and M
are not important in your case.

Posted: Mon Jul 31, 2006 4:40 pm
by debba
Mail sent, thanks again.
:-)

Posted: Mon Jul 31, 2006 6:23 pm
by Abacre
The promised default.cfg file has been sent to you by email.