Howie Hamlin wrote:
> 
> <img src="image1.jpg">
> to
> <img src="/root/images/image1.jpg">
> I would like to do this for all images in the text and account for both 
> single and double quotes.

Untested:
REReplaceNoCase(theText,"(<img[^>]+src='?""?)([^'""]+'?""?[^>]*>)"),"\1/root/images/\2","ALL")

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204749
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to