xpathfind: find XPath from string pattern