I'm in need of a quick way to put a bunch of html attributes in a Dictionary. Like so
<body topmargin=10 leftmargin=0 class="something"> should amount to
attr["topmargin"]="10"
attr["leftmargin"]="0"
attr["class"]="something"
This is to be done server-side and the tag contents are already available. I just need to weed out the tags with no value and take into account different quotation marks or lack of.
I'm guessing regex should be employed. Found some similar questions, but none that really match my need.
Thanks
edit: clarifying server-side