I have an htmlstring that holds multiple input tags. I need to identify 3 groups in that string and replace these captured groups inside the string in a specific order.
here an example of an non valid string:
<input style="BORDER-BOTTOM: 0px; TEXT-ALIGN: center; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: #fff6b7; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 10px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0px" onkeyup=this.value=this.name.substring(0,9); name=smartTag_Campaign_Date value=Campaign_Date size=18>
The attributes name, value and size need to be in the same string but in a different order as size, value and name.
I can't use html parser, unfortunately and therefore i need to stick to a regex expressions that i can't figure out myself.
Any ideas?