I need to remove the chars such as "+", "/", "_" and similar from strings in order to perform a search method.
According to other question here, I had this using the gsub method, the problem is that it also substitutes the accentuated letters, which I don't want to:
string.gsub(/[^0-9A-Za-z]/, '')
EDIT: The languagues I need to support are spanish and catalonian.
Is there any way to adapt the expresion to preserve the letters with accents?