G
Guest
I need to take a short piece of html/xml as a string
IE: <tagName attribute1='value' attribute2=value/>
Note that one attribute value is quoted and one is not.
The input string could have any number of attributes with any combination of
quoted and unquoted values.
The ouput string needs all values quoted.
Can I do this with regular expressions or can you offer another suggestion?
IE: <tagName attribute1='value' attribute2=value/>
Note that one attribute value is quoted and one is not.
The input string could have any number of attributes with any combination of
quoted and unquoted values.
The ouput string needs all values quoted.
Can I do this with regular expressions or can you offer another suggestion?