I'm trying to pull some information (no recursion necessary) from a jsp page (malformed xml) similar to this:
<td>
<html:button ...></html:button>
<html:submit ...></html:submit></td>
And a regex:
<html:(button|submit|cancel)[\s\S]*?</html:(button|submit|cancel)>
re.findall() is giving me a list of tuples, like so:
[('button','button'),('button','button')]
Which I understand from the documentation is correct, but I'm looking to get something more like:
["<html:button ...>","<html:button ...>"]
What is the appropriate way to get the outcome I expect?