PHP-REGEX: accented letters matches non-accented ones, and visceversa. How to achive it?
- by Lightworker
I want to do the typical higlight code.
So I have something like:
$valor = preg_replace("/(".$_REQUEST['txt_search'].")/iu", "<span style='background-color:yellow; font-weight:bold;'>\\1</span>", $valor);
Now, the request word could be something like "josé".
And with it, I want "jose" or "JOSÉ" or "José" or ... highlighted too.
…