How to get Chinese words or Western words from a string ?

 

 

 

strString = "(同人CG集) RSTSlave - Kasumi Mania 2 (DOA)" ;

var arrChinese = strString.match( /[^/w/s/[-_~!/]/(/)////]+/ig ) ;

var arrEnglish =  strString.match( //b[/w]+/ig ) ;

 

posted on 2009-07-23 17:39  norsd  阅读(133)  评论(0编辑  收藏  举报

导航