Hello,

Are you able to show us the Regex that you are using?

Given that you are using Response.Write (which isn't the best way) you are emitting HTML directly into the response stream for the page, a response stream that will already contain the opening <html> tags etc, you are going to need to make sure that you are only emitting content HTML, not other "top level" html.

Gary