Regular Expression for html tags
-
Hello!! Im trying to remove all html tags except some tags like and . I did a nonCapturing Group but this don't work. Alternate bar | suppose to match left most option.... If i found a or tag i dont want to replace it with "". Regex.Replace(inputText, @"|]|\n)*?>", ""); Please Help me !!!! Thanks !! ;) Bruno Conde pharaoh -- modified at 11:16 Thursday 22nd September, 2005
-
Hello!! Im trying to remove all html tags except some tags like and . I did a nonCapturing Group but this don't work. Alternate bar | suppose to match left most option.... If i found a or tag i dont want to replace it with "". Regex.Replace(inputText, @"|]|\n)*?>", ""); Please Help me !!!! Thanks !! ;) Bruno Conde pharaoh -- modified at 11:16 Thursday 22nd September, 2005
-
A non-capturing group doesn't mean that the pattern isn't matched. It only means that the match does not create a group. --- b { font-weight: normal; }