updated regex for matching xpaths in validate error messages.