Skip to content

support for chinese language #11

Open

Description

@radhakrishnapai

As an enhancement, is it possible to provide support for chinese language? Please do reply.

Activity

  1. radhakrishnapai commented on Oct 14, 2014

    @radhakrishnapai
    Author

    Hi again!

    I did this easily by adding the unicode character ranges

    \u4e00-\u9fff\u3400-\u4dff\uf900-\ufaff\uac00-\ud7af
    

    in the character set of the regex.
    The complete character set in regex would look like:

    [A-Za-z0-9\u4e00-\u9fff\u3400-\u4dff\uf900-\ufaff\uac00-\ud7afé|ë|ê|è|à|â|ä|á|ù|ü|û|ú|ì|ï|î|í)_]
    

    You may find all character ranges for Chinese in the following SO link:
    http://stackoverflow.com/a/1366113/2954866

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