RegExp Replace object on TextStream not working
Posted on 2001-08-24
I am using the textStream object to output the contents of an HTML file. As its outputting i want to search for html tags and replace them, however it would seem to match the > and < characters.
For instance if i search for "/b" and replace it with something else it works. Whereas if i try to replace "</b>" it doesnt work. Ive tried "</b>" and still no joy.
What is the problem with the > and < characters? The textStream is set to ASCII format (tristate false).
Secondly, if i find an html tag, i want to stop the stream, response.write the equivalent code in HTML format and then continue streaming again, how could i do that?