Regular Expression to isolate an html tag
- by orit cohen
I'm looking for a regular expression to isolate an html tag. This includes the TAG the ATTRIBUTES and the CONTNET inside.
Let's say I have this:
<html>
<body>
aajsdfkjaskd
<TAGNAME name="bla" context="non">hfdfhdj </TAGNAME>
</body>
</html>
I need a regular expression that would return:
<TAGNAME name="bla" context="non">hfdfhdj </TAGNAME>
Thank,
Joe