More or less. I would probably skip the backreferences and rewrite the img tag from scratch, or specify which attributes I want to keep. But if you want to keep all additional attributes (style, alt, title, etc.) then you're right -- that'd be how to go about it.
--Ben Patric Stumpe wrote: > Hi Ben, > > thanks for the quick reply. > Am I right that I could embrace the different parts of that regex for > simple back-reference? I have to grab the complete URL of the > src-attribute (need to work with that a bit) and replace it with a > known string: > > e.g.: > <img src="/path/to/image.gif" height="25" width="20"> > > would lead to: > <img src="cid:inlineImage01" height="25" width="20"> > > So something like that could work? > (<img [^>]*src=")([^"]+)("[^>]*>) > > => \1cid:inlineImage01\3 > > Patric > > >>Finding the img tags should be easy. Replacing them with inline tags >>is, unfortunately, something I'm not familiar with. > > >>To find an img tag, you would look for something like this: >><img [^>]*src="[^"]+"[^>]*> > > >>Hopefully, someone can help with the other half (9/10ths?) of the problem. > > >>--Ben > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:211574 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

