2014-01-13 5 views

답변

1

Unicode block\p{InHangul_Compatibility_Jamo} (U + 3130 - U + 318F)을 사용하십시오.

>>> import regex 
>>> regex.findall(r'\p{InHangul_Compatibility_Jamo}', '한ㅎㅏㄴ글') 
['ㅎ', 'ㅏ', 'ㄴ'] 
>>> regex.findall(r'[\u3130-\u318f]', '한ㅎㅏㄴ글') 
['ㅎ', 'ㅏ', 'ㄴ'] 
:

파이썬 3.X 예 (타사 regex 모듈을 사용)

관련 문제