Produce simpler regexps for XPathParser