2009/06/14 22:25

PHP 정규식 한글만 추출 프로그래밍/PHP2009/06/14 22:25

$str = 'ㄱㄱㄱ가나다라abcd마바사아efgh항'; 
$hangul_jamo = '\x{1100}-\x{11ff}'; 
$hangul_compatibility_jamo = '\x{3130}-\x{318f}'; 
$hangul_syllables = '\x{ac00}-\x{d7af}'; 

preg_match("/['.$hangul_jamo.$hangul_compatibility_jamo.$hangul_syllables.']+/u",$desc[0],$descs);
Posted by 웹눈

TRACKBACK | http://webnoon.net/trackback/137 관련글 쓰기

댓글을 달아 주세요