管道 - 正则表达式

var a = /\bd+ (pig|cow|cko)\b/
console.log(a.test("15 pig")   //true
posted @ 2019-12-15 14:45  雨夜稻草  阅读(322)  评论(0编辑  收藏  举报