number find and replace

General discussions about Advanced Find and Replace
Post Reply
debba
Posts: 3
Joined: Fri Jul 28, 2006 12:19 pm

number find and replace

Post by debba » Fri Jul 28, 2006 12:31 pm

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.

Abacre
Site Admin
Posts: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Fri Jul 28, 2006 3:13 pm

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.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

debba
Posts: 3
Joined: Fri Jul 28, 2006 12:19 pm

Post by debba » Fri Jul 28, 2006 4:35 pm

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.

Abacre
Site Admin
Posts: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Fri Jul 28, 2006 6:20 pm

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.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

debba
Posts: 3
Joined: Fri Jul 28, 2006 12:19 pm

Post by debba » Mon Jul 31, 2006 4:40 pm

Mail sent, thanks again.
:-)

Abacre
Site Admin
Posts: 1198
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Mon Jul 31, 2006 6:23 pm

The promised default.cfg file has been sent to you by email.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests