/
levDistance
CenterView Help
levDistance
Function: levDistance()
Returns the Levenshtein distance between two strings. This is the number of character edits (inserts, deletions or substitutions) that would need to be made to change one string into the other. This function is useful in fuzzy string matching.
Syntax
levDistance(string1, string2)
Argument | Type | Description |
---|---|---|
string1 | String | String, of any length. Note that "null" is treated as an empty string. |
string2 | String | String, of any length. Note that "null" is treated as an empty string. |
Examples
levDistance("ABC", "ABC")
returns 0
levDistance("ABC", "AXC")
returns 1
levDistance("ABC", "ABCDE")
returns 2
levDistance("", "ABCDE")
returns 5
levDistance(_NULL, "ABCDE")
returns 5
See Also
, multiple selections available,
Related content
levDistance
levDistance
More like this
levDistance
levDistance
More like this
levDistance
levDistance
More like this
geoDistance
geoDistance
More like this
geoDistance
geoDistance
More like this
stringLength
stringLength
More like this
Please let us know if we could improve this page feedback@phixflow.com