str = "The stor-+)_y is someth12ing that tr@#ee3 de124scrib%^&ing
becom5es life7 4 difficult";
console.log(str.replace(/\W/g,''));伙计们,写了这个RegEx来匹配所有的非字母数字字符,但是不能选择‘下划线’吗?据我所知,\d代表空格的所有数字...那么,哪个字母代表下划线?
https://stackoverflow.com/questions/44698345
复制相似问题