Fix xhtml parse

Not sure why, but regex isn't matching on complex HTML sometimes. This leads to a situation where you edit the post and all content disappears. Switching to global regex seems to fix this.