Is there a built in function or a function that someone has already written that can match names without being exact?
For example, I have:
Marry
John
Steve
Steven
Stewie
If someone types "stew" the function would return Stewie.
Or if someone types "ry" the function would return Marry.
Or if someone misspells "Marries" the function would still return Marry. (due to being the most similar of them all)
If "Ste" is supplied it can return false but it doesn't really matter to me.
Does anyone know how to write this sort of function or know of one already written? Seeing as this is probably a common thing, I would assume so.
Thanks.