Is there any straightforward manner to make a character replacing in javascript of many chars in just one instruction with different replacement for each one, like it is possible in PHP?
I mean, something like:
replace('áéíóú', 'aeiou');
That replaces á with a, é with e, í with i, and so on…
Thanks a lot in advance,
Use regex with the global flag: