Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for chinese language #11

Open
radhakrishnapai opened this issue Oct 13, 2014 · 1 comment
Open

support for chinese language #11

radhakrishnapai opened this issue Oct 13, 2014 · 1 comment

Comments

@radhakrishnapai
Copy link

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

@radhakrishnapai
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant