[eluser]Daniel H[/eluser]
I have a slightly modified alpha_dash function to allow spaces, but I also want to allow alpha-like foreign characters like aàáâãäå, eéèêë, iì etc. Any ideas how I change the regex to allow this
Code:
return ( ! preg_match("/^([-a-z0-9 _-])+$/i", $str)) ? FALSE : TRUE;