|
Description:
This regular expression extracts hangul (Korean Language) codes from web pages.
Usage: Text Source
$hangul = '안녕하세요? 제 이름은 Park, Jong-Pork 입니다.';
@hangul = ($hangul =~ /((?:[\xA0-\xFE]{2})*)/isg);
$hangul = "@hangul";
$hangul =~ s/([\xA0-\xFE]{2})([\x7F-\x9F]{1})/$1/isg;
$hangul =~ s/[A-z]{1,}//isg;
$hangul =~ s/\s*//isg;
print $hangul;
The license for this recipe is available here.
Discussion:
This regular expression was used in a Korean-language world wide web search engine.
|