Re: finding a substring in string, target attribute of an anchor tag

2007-12-04 Thread Ben Doom
I think your regex thought was probably good. If you don't need to keep any style or class on them, the easiest thing would be to find the whole anchor, grab the url, and replace the whole shebang with the url inserted into a preformatted anchor tag. If you do need to preserve other

RE: finding a substring in string, target attribute of an anchor tag

2007-12-04 Thread Andy Matthews
HAH! Turns out that the simplest solution to this issue was plain old manpower. There was a small enough amount of these that we just trned our support dept loose on it, and had them change each link manually. Thanks for the feedback though Ben. -Original Message- From: Ben Doom

finding a substring in string, target attribute of an anchor tag

2007-12-03 Thread Andy Matthews
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?dlr3amp;;tamp;21amp;amp amp;;tamp;21amp;amp; target=mainsome text/a I need to programmatically find each anchor