XPathParser: fixed regexps anchors, added tests