摘要: var word="[hell]还能行吗[world]" var rep=/(\[[a-z]+\])/g; //console.log(word.match(rep)); console.log(word.replace(rep,'')) result: 还能行吗 阅读全文
posted @ 2018-02-14 11:39 回不去的空白 阅读(83) 评论(0) 推荐(0) 编辑