Added regular expression matching to xypath using re.match