- (errors-substring-match PAT STRING POS LEN [NUMERRS] [WHOLEWORD])procedure
Same as substring-match, but returns the smallest number of errors such that the substring matches the pattern. That is, it returns 0 if the substring matches exactly, 1 if the substring matches with one error, etc. Returns -1 if the substring does not match the pattern with at most NUMERRS errors.