insert between problem

General discussions about Advanced Find and Replace
Post Reply
CoSmO
Posts: 2
Joined: Fri Feb 17, 2006 12:37 pm

insert between problem

Post by CoSmO » Fri Feb 17, 2006 12:43 pm

I try to modify => 'myimage.jpg' to 'http://webserver/images/myimage.jpg'

So myimage will change constantly, so i wish to search for myimage.jpg' so that i can insert the http in front of myimmage and after the first '.

I would think [a-z].jpg' and then insert in front. But i use the demo version and it dont do anything with [a-z] only if i type the full name or .jpg or something like that .

I tried several things with version 2.3, but i always failed in my attemt.
Is there any way to make this work?

Friendly greetings.

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

Post by Abacre » Fri Feb 17, 2006 3:41 pm

Go to Batch replace tab, check on "Use regular expressions".
Put into the grid, search for:
'([a-z]+\.jpg)'

Replace with:
'http://webserver/images/$1'

So in your first message you forgot to escape . (dot) because it's
reserved char. And you should have more than one char a-z so you
should add + (plus).

That's all I verified it works perfectly.
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

CoSmO
Posts: 2
Joined: Fri Feb 17, 2006 12:37 pm

Post by CoSmO » Fri Feb 17, 2006 5:37 pm

I confirm that this works.
Thanks alot m8, thumbs up

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests