Results 1 to 3 of 3
Thread: preg_replace
Hybrid View
-
2nd April 2009 14:13 #1
preg_replace
, , utf8 .
:
$string * .Code:$var = preg_replace('/[^--A-Za-z0-9-]/', ' ', $string);
: \u0430-\u044F
: PCRE does not support \L, \l, \N, \U, or \u at...
, preg_replace , .. mb_preg_replace, .
, .
(/) + , .
!Last edited by BornToDrink; 2nd April 2009 at 14:35.
Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
2nd April 2009 19:53 #2Registered User
Join Date: Aug:2006
Location: Sofia
Posts: 37
:
Code:preg_replace('/[^a-z0-9-\pL]/ui', ' ', $str);
-
2nd April 2009 23:00 #3Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.




Reply With Quote


Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in