You should look into methods other than regular expressions to parse XML, particularly if:
- your requirements are likely to change in future, making your regular expression increasingly unweildy
- you are parsing data from a third-party source, which may contain just about anything, including strings that look like XML tags embedded in XML comments, CDATA sections or attributes.
See this answer for information about XML parsing in Javascript.
The easy solution is "use jQuery". If for some reason you don't want to load jQuery to do this, then start here.