1、js筛选字符串中某些字符
var str="Hello 哈哈,nice!to Meet ++ you"
// match 找出符合正则条件的字符串并返回数组 strEnglish=["Hello", "nice", "to", "Meet", "you"]
var strEnglish=str.match(/[a-z]+/gi)
// strEnglish2="Hello,nice,to,Meet,you"
var strEnglish2=str.replace(/[^a-z]+/gi,",")
// 以某个字符作为分割,返回组strEnglish3=["Hello", "nice", "to", "Meet", "you"]
var strEnglish3=strEnglish2.split(",")