preg_match and accents (RESOLVED)
Posted: Wed Jun 06, 2012 9:04 am
How can I make preg_match understand case sensitiveness for
accented characters. For example
This works:
But this doesn't (pay attention to "á" and "Á"):
It keeps showing "no".
accented characters. For example
This works:
Code: Select all
$s = 'Á test ...';
echo preg_match('/á/i', $s) ? 'Yes' : 'No';
Code: Select all
$s = 'á test ...';
echo preg_match('/Á/i', $s) ? 'Yes' : 'No';