I have a variable containing a string in which might appear any number of
links to to kbb.com:
<a href="http://www.kbb.com/kb/ki.dll/kw.kc.uy?dlr3
<http://www.kbb.com/kb/ki.dll/kw.kc.uy?dlr3&amp;;t&amp;21&amp;&amp>
&amp;;t&amp;21&amp;&amp;" target=main>some text</a>
 
I need to programmatically find each anchor tag with said link, then force
it's target attribute to be target="_blank".
 
I originally thought I could do it with regex but I don't think that's going
to work. I was thinking that I could get the kbb.com's starting position,
then find the "next" instance of "target", then work from there. Might you
chaps have a better/more efficient means to do this?
 
____________________________________
 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com <http://www.dealerskins.com/> 
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294112
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to