Hi,
I need to replace special characters when they occur in certain places. The following method works well except for the first occurence of the pattern. I am trying hard to debug, but am getting nowhere. Could anyone please see what is going wrong here ?
The special characters should be replaced only when they occur before the '|' sign. But in the result as you see, in the first occurence, the replacement is made to both sides of '|' and in the rest of the text it is done correctly.
My search text sample -
[first name�|firstname�] this is my page, please go through it and send me feedback. [cchrp|Chris Harp] my page is open to all
[G�nterL�her|G�nter L�her] Replace the sp.characters here please!
Current result after replacement - ( I am trying to escape HTML for correct display here, hence the extra whitespaces )
[first name&s zlig;|firstname&s zlig;] this is my page, please go through it and send me feedback. [cchrp|Chris Harp] my page is open to all [G&u uml ;nterL&o uml ;her|G�nter L�her] Replace the sp.characters here please!
thank you,
Soumya
[ April 27, 2006: Message edited by: soumya ravindranath ]