preg_match, utf-8 and accent characters |
[eluser]Rob Gordijn[/eluser]
ok, after some hours of searching, reading, testing and reading some more... i got it it was just so simple http://www.php.net/manual/en/regexp.refe...nicode.php \p{L} does the job. my regex is now like this: Code: $regex_text = "/^([\p{L}a-zA-Z0-9]*)$/i"; thanks for reading. |
Messages In This Thread |
preg_match, utf-8 and accent characters - by El Forum - 02-03-2010, 07:39 AM
preg_match, utf-8 and accent characters - by El Forum - 02-05-2010, 01:35 AM
preg_match, utf-8 and accent characters - by El Forum - 01-14-2013, 03:29 PM
|