There's a famous answer on StackOverflow saying you can't, in the general sense, parse XML with a regex: stackoverflow.com/questions/1732348/regex-match-o…
Now possibly, this case is restricted enough that it might work in most cases. But is there a reason to not just parse the XML? Is it causing a measurable performance problem?