I need to get all HTML tags without attribute from a string. I tried regex: < *([^/][^ ]*).*?>
but it still gets HTML tag and attributes.
Can anyone help me find a regex to get this.
Example:
From <html><head></head><body class="body"><a href="abc.html"></a></body>
,
I want to get <html><head></head><body><a></a></body>
.
And a Regex to get only html tag
get to html head head body a a body
Thanks all.