input char:a (unicode:97) output type:2
input char:Space (unicode:32) output type:12
in java i can use code: “int type = Character.getType(unicode)”
Character.getType Api
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, there’s the
nodeTypeproperty which will tell you if it is a text node or an HTML element, for example. As far as obtaining the unicode category, I don’t believe there is a native function for that. You can try this plugin which will offer unicode support for regex:http://xregexp.com/plugins/
http://www.javascriptkit.com/domref/nodetype.shtml