Re: Another one for the RegEx-Gurus
No worries. Glad to be of service. If you want more help with RegEx, I suggest subscribing to the HoF regex list. It's very low-traffic, but if you post a question, it WILL get answered. Sometimes in more detail than you actually needed! And everyone on it is happy to help you learn. --Ben Patric Stumpe wrote: > 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! ~| 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:211587 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
Re: Another one for the RegEx-Gurus
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.: >> >> >> would lead to: >> cid:inlineImage01"; height="25" width="20"> >> >> So something like that could work? >> (]*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: >>>]*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
Re: Another one for the RegEx-Gurus
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.: > > > would lead to: > cid:inlineImage01"; height="25" width="20"> > > So something like that could work? > (]*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: >>]*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
Re: Another one for the RegEx-Gurus
Hi Howie, I did already solve that part. Manually geneerated messages are properly sent. So now I (hopefully) only need to concentrate on that replacment for the WYSIWYG-submitted mailbody. Greets Patric > FYI - Even if you replace the source with a CID you still need to > encode the image into the email using that same CID > as a reference. > Regards, > Howie -- Patric Stumpe mailto:[EMAIL PROTECTED] ~| 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:211573 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
Re: Another one for the RegEx-Gurus
FYI - Even if you replace the source with a CID you still need to encode the image into the email using that same CID as a reference. Regards, Howie --- On Monday, July 11, 2005 2:41 PM, Patric Stumpe scribed: --- > > 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.: > > > would lead to: > cid:inlineImage01"; height="25" width="20"> > > So something like that could work? > (]*src=")([^"]+)("[^>]*>) > > => \1cid:inlineImage01\3 > > Patric > ~| 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:211571 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
Re: Another one for the RegEx-Gurus
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.: would lead to: cid:inlineImage01"; height="25" width="20"> So something like that could work? (]*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: > ]*src="[^"]+"[^>]*> > Hopefully, someone can help with the other half (9/10ths?) of the problem. > --Ben -- Patric Stumpe mailto:[EMAIL PROTECTED] ~| 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:211570 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
Re: Another one for the RegEx-Gurus
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: ]*src="[^"]+"[^>]*> Hopefully, someone can help with the other half (9/10ths?) of the problem. --Ben Patric Stumpe wrote: > Hi folks, > > i did already search the web and the archives but without any success. > I'm trying to build a HTML-Email-Interface which runs on an old CF4.5. > > The input and some parts of the processing are running quite fine. But > now I'm stuck on the img-tags, where I have to replace the relative > image-URL with inline-attached images. The building of the attachments > works but I've no clue how to replace (or better find) the > src-attribute of the img-tags to extract and replace them with the > proper inline reference. > > Hope that some of you can help me out with that one. > > > Cheers, > Patric > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211567 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
Another one for the RegEx-Gurus
Hi folks, i did already search the web and the archives but without any success. I'm trying to build a HTML-Email-Interface which runs on an old CF4.5. The input and some parts of the processing are running quite fine. But now I'm stuck on the img-tags, where I have to replace the relative image-URL with inline-attached images. The building of the attachments works but I've no clue how to replace (or better find) the src-attribute of the img-tags to extract and replace them with the proper inline reference. Hope that some of you can help me out with that one. Cheers, Patric -- Patric Stumpe mailto:[EMAIL PROTECTED] ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211565 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