Skip to content

Japanese character set regexp? #4

Description

@zersiax

Hello,

I see there is a character set for Chinese, as well as Russian, but I am missing one for Japanese. I know that Chinese and Japanese share a lot of characters according to UTF-8 so I will most likely have to remove the one for Chinese and add the Japanese one. However, I am having a bit of trouble getting the regexp right for all the three alphabets. My attempt:
ja_ja:([一-龯])

This gives us (most) kanji, and works for those. However, ideally, I would also like to add the following regexp:
([ぁ-んァ-ン])
which should add hiragana and katakana. However, adding that line below the previous one makes the entire thing not work anymore. My regexp is a bit rusty and I'm not sure how to combine these two. Am I reinventing the wheel here?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions