I use the "fuzzy matching" functionality of the Regex module.
How can I get a “fuzzy” value in a “match” that indicates how different the template is from the string, like “edit distance” in Levenshtein?
I thought I could get the value in the Match object, but it is not. Official documents did not say anything about this.
eg:.
regex.match('(?:foo){e}','for')
a.captures() tells me that the word "for" matches, but I would like to know the value of fuzziness, which should be 1 in this case.
Is there any way to achieve this?
tslmy
source share