Possible Duplicate:
How do I extract a string of text that lies between two (brackets) using .NET?
could anyone help to remove part of a string that is enclosed in bracket?
for example, I have a string parsed out of html/xml, so some comment remains in the string as following,
"hello <!-- this is not meant to be here --> world, please help me"
I want to remove the entire comments includes <!--, words, and -->, and leave as “hello world, please help me”
Thank you!
Use regex;