That is exactly what REGEX is designed to do. It has a learning curve, but you should seriously dive in, its a great tool to have under your belt.

--

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/

On Aug 13, 2007, at 1:35 AM, MC Tay wrote:

Hi:

I'm trying to figure out how to replace one or more URLs within a block of text so that I can insert it with a click through URL........and I need some help.

Here's a sample of the block of text:

This is the block of text.....bluh bluh bluh........ <a href="http://www.websiteone.com/app1.taf? para1=100&para2=200&para3=300" target="_blank"> ....and the text continues.... .....bluh bluh bluh...... <a href="http://www.websitetwo.com/ app2.taf?p1=aaa&p2=bbb"> and more text ........

I want to replace the URLs within the text as follows, but not sure how to do that. Any help is much appreciated.

<a href="http://www.websiteone.com/app1.taf? para1=100&para2=200&para3=300" target="_blank">
becomes
<a href="http://www.mywebsite.com/click.taf?vurl=http:// www.websiteone.com/app1.taf?para1=100&para2=200&para3=300" target="_blank">

<a href="http://www.websitetwo.com/app2.taf?p1=aaa&p2=bbb";>
becomes
<a href="http://www.mywebsite.com/click.taf?vurl=http:// www.websitetwo.com/app2.taf?p1=aaa&p2=bbb">


Thanks

MC

______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to