Below I have the following Regex Expression which I am using to remove the HTML tags from a string object:
(?:<style.+?>.+?</style>|<script.+?>.+?</script>|<(?:!|/?[a-zA-Z]+).*?/?>)
This expression works well... a little too well. I want to exclude the HTML comment tags like:
<!--/ nav -->
<!--end nav-->
<!-- subnavup -->
<!--/ subnavup -->
Not specifically these examples, but all HTML comment tags. What changes to my Regex would I need to do in order to accomplish this?