How do I replace the following special characters by their equivalent?
Vowels: ÁÉÍÓÚáéíóú by AEIOUaeiou respectively. And letter Ñ by N.
The expression:
str = regexprep(str,'[^a-zA-Z]','');
Will remove all characters non in alphabet, but how do I replace with something equivalent like shown above?
Thanks
You could write a series of regular expressions like:
and so on for the rest of the accented characters… (for both upper/lower cases)
Warning: there are so many variations even for the small subset of Latin alphabet
A simpler example:
The string before:
after: