Parker Software Ltd Homepage
Forum Home Forum Home > Email2DB Email Parser > Scripting
  New Posts New Posts RSS Feed: Find and Replace
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Find and Replace

 Post Reply Post Reply
Author
Message
shane104 View Drop Down
New User
New User


Joined: 25 Jan 2010
Posts: 17
Post Options Post Options   Quote shane104 Quote  Post ReplyReply Direct Link To This Post Topic: Find and Replace
    Posted: 04 Feb 2010 at 9:42am
Hello!
 
I have a trigger that extracts the HTML code from an incoming email.
 
I need to be able to do a 'Find and Replace' on absolute URLs that reference the images.
 
I suspect the HTML would need to be passed onto a second trigger? - but please can someone help with the script?
 
 
need to convert to
 
 
Many thanks for your help on my other posts - All work / fantastic service.
 
Thanks
Shane
Back to Top
shane104 View Drop Down
New User
New User


Joined: 25 Jan 2010
Posts: 17
Post Options Post Options   Quote shane104 Quote  Post ReplyReply Direct Link To This Post Posted: 05 Feb 2010 at 5:29pm

Hello,

Is anyone able to help with this? - It would be a real help if it's possible.
 
Thanks,
Shane
Back to Top
Stephen View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 Oct 2005
Location: Stoke on Trent
Posts: 1131
Post Options Post Options   Quote Stephen Quote  Post ReplyReply Direct Link To This Post Posted: 10 Feb 2010 at 10:23am
Hi,
 
You could create a script as follows:
 

Sub Main
    MSG_HTML = Replace(MSG_HTML,"/brand1/","/brand2/")
End Sub
 
This would simply do a replacement of all occurances of /brand1/ with /brand2/ in the HTML of the email.
 
You could then forward a new message using the %MSG_HTML% field as the HTML portion.
 
Steve
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.281 seconds.
These are the forums for Parker Software, developers of Live Chat Software: WhosOn and Email Automation Software: Email2DB.