I need a C# RegEx pattern which can remove anything between < and >
E.g if my string is
<Html> some stuff here 123445!@#$% </HTML>
then the RegEx should return me only
some stuff here 123445!@#$%
It should remove anything between < and > and then also remove “<” & “>”
http://regexr.com?2vl05
edit
Im talking as interpreter :
< = search for ‘<‘ char
[^>] = now continue search for char which is not ‘>’
+ continue searching for more instances of it
? but dont be greedy
> when im saying dont be greedy – i mean – until i will encounter with ‘>’
AND REPLACE THIS WITH “”