<html lang="ko">
<head>
<meta charset="UTF-8">
<title>PHP Regular Expression</title>
</head>
<body>
$text = "123가나abc다라";
$pattern = "/[\\x{ac00}-\\x{d7af}]+/u"; // 한글 소리 마디(UTF-8)
$arr = preg_match_all('/./u', $text, $matches); // 줄 바꿈 문자(\n)를 제외한 임의의 한 문자씩 검색함.
echo preg_replace($pattern, '', $text); // 해당 문자가 한글이면, 빈 문자열로 대체함.
</body>
</html>