[PHP-users 24457] Re: 正規表現で機種依存文字をチェックするには?

unico sagittarius @ ceres.ocn.ne.jp
2005年 2月 8日 (火) 16:25:20 JST


$BJVEz$"$j$,$H$&$4$6$$$^$9!#(B
$B%(%i!<$G$O$8$-$?$$5!<o0MB8J8;z$r=q$+$J$/$F$9$_$^$;$s$G$7$?!#(B
$B2<5-$NJ8;z$r%(%i!<$G$O$8$-$?$$$H;W$C$F$$$^$9!#(B

$B-!(B $B-"(B $B-#(B $B-$(B $B-%(B $B-&(B $B-'(B $B-((B $B-)(B $B-*(B $B-+(B $B-,(B $B--(B $B-.(B $B-/(B $B-0(B  
$B-1(B $B-2(B $B-3(B $B-4(B $B-5(B $B-6(B $B-7(B $B-8(B $B-9(B $B-:(B $B-;(B $B-<(B $B-=(B $B->(B $B!&(B $B-@(B  
$B-A(B $B-B(B $B-C(B $B-D(B $B-E(B $B-F(B $B-G(B $B-H(B $B-I(B $B-J(B $B-K(B $B-L(B $B-M(B $B-N(B $B-O(B $B-P(B  
$B-Q(B $B-R(B $B-S(B $B-T(B $B-U(B $B-V(B $B!&(B $B!&(B $B!&(B $B!&(B $B!&(B $B!&(B $B!&(B $B!&(B $B-_(B  
$B-`(B $B-a(B $B-b(B $B-c(B $B-d(B $B-e(B $B-f(B $B-g(B $B-h(B $B-i(B $B-j(B $B-k(B $B-l(B $B-m(B $B-n(B $B-o(B 
$B"b(B $B"a(B $B"i(B $B-s(B $B-t(B $B"e(B $B"](B $B"\(B $B-x(B $B-y(B $B"h(B $B"A(B $B"@(B 

$B3'$5$s$N%"%I%P%$%9$r;29M$K<+J,$J$j$K:n @ .$7$^$7$?$,;W$&$h$&$JF0$-$r$7$F$/(B
$B$l$^$;$s!#>e5-$NJ8;z$NHO0O$r @ 55,I=8=$G @ _Dj$7$?$D$b$j$J$s$G$9$,!&!&!&(B

if(preg_match("/([\x87][\x40-\x9F])/", $str)){
	print "$B!_(B";
}
else{
	print "$B!{(B";
}

$B>e5-$N%9%/%j%W%H$r<B9T$9$k$H%"%k%U%!%Y%C%H(B($BA43Q(B)$B$,$R$C$+$+$C$F$7$^$$$^$9!#(B
$B:FEY!"%"%I%P%$%9$7$F$$$?$@$1$J$$$G$7$g$&$+!)(B
$B59$7$/$*4j$$$7$^$9!#$G$O<:Ni$7$^$9!#(B




PHP-users メーリングリストの案内