Problem with regular expression for some special parttern.

Posted by SpawnCxy on Stack Overflow See other posts from Stack Overflow or by SpawnCxy
Published on 2010-05-10T11:02:19Z Indexed on 2010/05/10 11:14 UTC
Read the original article Hit count: 240

Filed under:
|

Hi all, I got a problem when I tried to find some characters with following code:

preg_match_all('/[\w\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A]/',$str,$match); //line 5
print_r($match);

And I got error as below:

Warning: preg_match_all() [function.preg-match-all]: Compilation failed: PCRE does not  support \L, \l, \N, \U, or \u at offset 4 in E:\mycake\app\webroot\re.php on line 5

I'm not so familiar with reg expression and have no idea about this error.How can I fix this?Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about regex