Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
한글 패턴으로 단어 목록 필터링
match_hangul_pattern( words: list[str], pattern: str, wildcard: bool = True, regex: bool = False, ) -> list[str]
*
regex=True
from hangulpy import match_hangul_pattern words = ["가구", "나무", "가방"] print(match_hangul_pattern(words, "ㄱ*")) # ['가구', '가방'] print(match_hangul_pattern(words, "*ㅜ")) # ['가구', '나무'] print(match_hangul_pattern(["("], "(")) # ['('] print(match_hangul_pattern(words, r"ㄱㅏ(ㄱㅜ|ㅂㅏㅇ)", regex=True)) # ['가구', '가방']
wildcard=False