Welcome Guest, Not a member yet? Register   Sign In
preg_match, utf-8 and accent characters
#2

[eluser]Rob Gordijn[/eluser]
ok, after some hours of searching, reading, testing and reading some more...
i got it Smile it was just so simple Sad

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



Theme © iAndrew 2016 - Forum software by © MyBB