I need some advice in the subject of regular expressions in js.
I have a string
var page = '<html attribute1="<test1>" test2 attribute2="test2"></html>';
I'm trying to get fragment
<html attribute1="<test1>" test2 attribute2="test2">
But my code:
page.match(/<.*?>/);
returns only chars to first occurrence of ">", therefore
<html attribute1="<test1>
What should I do to ignore the symbols ">" appearing between quotes? Please help me and sorry for my English ;)