PCRE with UTF-8
Posted by: ciuli (---.rdsnet.ro)
Date: June 01, 2009 02:42PM

Hi guys,

i have some problems...
i`m wondering if you can provide the PCRE extension with UTF-8 includes because as i can see the preg_match with utf-8 chars is not working and as you know this error appears:

Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support \L, \l, \N, \U, or \u

Can you please advise?

Thanks in advance.

Options: ReplyQuote
Re: PCRE with UTF-8
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: June 01, 2009 02:54PM

no issue with it as i use it alot.. please paste upu ur code

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: PCRE with UTF-8
Posted by: ciuli (---.rdsnet.ro)
Date: June 01, 2009 03:07PM

This code is generating that error:

$string = "asd123'_-é";
echo preg_match("/^[-_.'\u0100-\u017F\a-zA-Z0-9]+$/", $string);

Options: ReplyQuote


Sorry, only registered users may post in this forum.