Thanks Ben,

it really seems to work. Now I have to crawl the source html
backwards and have a look at what happens :)

Thanks a lot!

Patric

> 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
>> 
>> 
>> 
>> 


> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211579
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to