My software uses the following before performing a search on a mySQL database:
$keywords_search = preg_replace("/[^a-zA-Z0-9 ]/", "", $keywords_search);
The problem is that it's stripping out words that users may use in other languages, like "españa" (spanish) due to the "ñ" character which is very common.
Is there any way to allow certain special characters in preg_replace?