Jump to content

ATTENTION: never solved pattern!


rimad

Recommended Posts

I aksed around, no one knows. Here is my problem:

-> I simply want to match all utf8 alphabetic characters <-

Example provided in manual for preg_match on php.net website doesn't work properly, preg_match("/[\w\pL]/u",$var); works for most (german/scnadinavian) characters but if i use some cirilic characters like " Срећа " it fails. I know perl works properly, its utf8 aware and when i do $string =~ /\w/ if $string is utf8 encoded, it will match all alphabetic utf8 characters. I also read on php website that its PCRE aware, well...i set locale to many many things, en_US.utf8, en_US, only UTF8...nothing changes.

Please help!!
Link to comment
https://forums.phpfreaks.com/topic/29486-attention-never-solved-pattern/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.