Hi All,
I am facing the following issue and cant find a solution to it.
I have a rich text field on a document containing text data. This field basically has html written with PassThruHTML. There are around 50,000 such documents.
This is what i have to do…
i have to perform a find & replace. But in this case i have to form the search string to be replaced. I have to search for all the “<a href="mailto=rishi.arora@abc.com” " tags and replace it with <a href=“javascript:void()” functionname('rishi arora)>".
I extract the name of the person before the @ symbol and pass it as an argument to the function.
I have written the code using FindFirstString & FindNextString and am able to replace. But if some of the part in the text is formatted i.e bold it does not return that part.
eg: "<a href=“mailto=rishi.arora@abc.com>Mail Me”…i am able to find this and replace with the required text but if "@abc.com is bold…in the resulting string i get only "<a href=“mailto=rishi.arora” instead of the entire string “<a href="mailto=rishi.arora@abc.com>”.
even if the text before the @symbol is in arial font and after that is in verdana…i cant get the entire string…
i deally the formatting should not make a difference…it should simply find & compare and replace the text…
I also tried using Midas LSX but same result.
I hope i am able to explain it clearly…i need a solution…though this is a one time activity…it is not possible to replace manually in 50,00 docs…
Thank You…
Rishi Arora.