I want to compare (case insensitive) two strings ignoring punctuation marks like dots, commas or other symbols (like spanish or french letters ó ü ê etc)
Some examples:
Hello == Helló
Hello, Sam == Hello sam
geo-code == geocode == geo code
(Is not necessary to cover all the options)
Whats the best solution (external libraries, methods, etc)
Remove all special characters.
Like from
geo-coderemove-it becomesgeocode. Similarly, remove space fromgeo codeHello, samafter removing space and comma becomesHellosamthen you can compare these strings. Here’s how you can do that.Now about the special characters like French ones: This will help you.
Here’s the code found in another thread. I have not tested it.