Results 1 to 11 of 11
Thread: php, preg, unicode
Hybrid View
-
6th February 2010 23:26 #1
php, preg, unicode
, , preg- .
:
, , i .Code:preg_match('/^[-]*$/ui', $val);
, :
. .Code:preg_match('/^[--]*$/u', $val);
?
, internal_encoding php.
, .
- , , .
-
6th February 2010 23:39 #2Registered User
Join Date: Dec:2003
Posts: 2,817
php- ? preg_match utf8
Gigabyte DS3P, E4400@9x333, 2x2Gb Super T@1000Mhz, Gigabyte GTX460OC 768Mb
-
6th February 2010 23:50 #3
5.2.10
.
:
preg- php- pcre-.
-, /u.
pcre, php , .
.
php , ...
LC_CTYPE
:
iconv.internal_encoding -> ISO-8859-1 -> ISO-8859-1
mbstring.internal_encoding -> no value -> no valueLast edited by Flower; 7th February 2010 at 00:15.
-
7th February 2010 00:10 #4Registered User
Join Date: Dec:2003
Posts: 2,817
php- PCRE Library .
Gigabyte DS3P, E4400@9x333, 2x2Gb Super T@1000Mhz, Gigabyte GTX460OC 768Mb
-
7th February 2010 00:17 #5
PCRE Library Version: 6.6 06-Feb-2006
?
-
7th February 2010 00:40 #6
?
- OS-, , pcre . . , , . , preg_ , , ..
.. pcre, 5.2.12, 7.9.2009. .
-
7th February 2010 00:51 #7
, .
, .
, .
.
"" - . .
, .
.
" ".
, , .
PCRE - phpinfo().
5.2.12 PCRE 7.9 2009-04-11.
, , mb- .Last edited by Flower; 7th February 2010 at 00:57.
-
7th February 2010 01:12 #8
. " ", "", 6.6 7.9 ? ( ).
"" , . , Windows, utf-8 . accept-charset, , Content-type , -1251, . accept-charset="UTF-8" .
-
7th February 2010 01:19 #9
.
() 6.6 .
, Windows, , . ( ) . .
- , .
.
, ...
.
:
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
( ?)
:
Transfer-Encoding: chunked
Content-Type: text/html
------
:
Code:if ( preg_match('/^[-]*$/ui', '') ) { error_log('qQ: cyr'); } else { error_log('qQ: HE'); } if ( preg_match('/^[-]*$/ui', '') ) { error_log('qq: cyr'); } else { error_log('qq: HE'); }
qQ: HE
qq: cyrLast edited by Flower; 7th February 2010 at 10:08.
-
7th February 2010 11:42 #10
changelog PCRE, 6.6 caseless . . , 5.2.10 pcre. 5.2.6 5.2.12. .
-
7th February 2010 11:54 #11
.
.
php, (CentOs ).
.
. ,
, . .
:
http://bg2.php.net/manual/en/pcre.installation.php
pcre php 5.2.10 7.8
( ) 6.6.
.Last edited by Flower; 7th February 2010 at 15:23.




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