I have a field to enter your friend’s name and search for him, to add him as a friend.The problem is that if you do not know how to spell your name, for example:Chris instead of Chris , for example.I think the correct way to do this is to use RegEx, but I don't know how ...
How can I handle these types of typos in PHP ?(if this is not possible in PHP, then tell me how to do it in jQuery)
, . - levenshtein - PHP , levenshtein.
levenshtein
EDIT: , , , PHP: soundex ( , Double Metaphone), metaphone, similar_text.
soundex
metaphone
similar_text
Regex . , . , , , ..
, hash_map . , : (, ).
Source: https://habr.com/ru/post/1771992/More articles:Estimate keyword density for a given block of text - phpInteraction between fork and user memory displayed in the kernel - shared-memoryhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1771989/a-very-large-directory-in-a-subversion-repository&usg=ALkJrhhH6nx3hdLCt8_V_3KpuqwMlv0g_AIs it possible to use a Django template template inside a JS script - javascriptКаков наилучший способ обслуживания небольших статических изображений? - javaPushing children into a global array using jQuery - jqueryJQuery plugin options: extension to or inside of this. block? - jqueryHow-to emits and parses raw binary data using yaml-cpp - yaml-cppHead wrap around hardware representations of numbers: a hypothetical question with two additions - language-agnosticRetrieving Entity Data from Autocad - csvAll Articles