管道

var a = /d+ (pig|cow|cko)/
console.log(a.test("15 pig")   //true
原文地址:https://www.cnblogs.com/yuyedaocao/p/12044160.html