pregex icon indicating copy to clipboard operation
pregex copied to clipboard

I hope you can make a class for Korean.

Open sungreong opened this issue 2 years ago • 2 comments

I am making the following code for Korean. If Korean is reflected officially, I think many Koreans will use it. :)

from pregex.core.classes import AnyLetter
class AnyKor(AnyLetter):

    def __init__(self) -> 'AnyKor':
        '''
        Matches any character from the Latin alphabet.
        '''
        super(AnyLetter,self).__init__('[ㄱ-ㅎ|가-힣]', is_negated=False)

sungreong avatar Aug 22 '22 13:08 sungreong

Hey there, Sure the more the better! I am keeping this issue open so I'll remember to include this in the next version!

manoss96 avatar Aug 22 '22 13:08 manoss96

@sungreong Hi again! I am looking at this Korean character set and I am noticing that some of these characters are missing from your RegEx. I don't know Korean, so I'm just asking you to make sure if it's okay to skip these characters.

manoss96 avatar Aug 23 '22 17:08 manoss96

Closing this issue as Korean class has been added. If something's wrong with it you can open a new issue.

manoss96 avatar Aug 27 '22 11:08 manoss96