- PHP 정규식 한글만 추출
- 프로그래밍/PHP
- 2009/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);
'프로그래밍 > PHP' 카테고리의 다른 글
| 웹표준화 작업 - 실수로 빠트린 alt 속성 일괄 삽입해주기 (0) | 2009/06/27 |
|---|---|
| PHP 정규식 한글만 추출 (0) | 2009/06/14 |
| checkbox form 에서 값 넘겨받기 (0) | 2009/06/07 |
| PHP로 달력만들기 (0) | 2009/05/15 |





Recent comment