(\/{2,}.*?(\r|\n))|(\/\*(\n|.)*?\*\/) 匹配所有/**/
或(|)运算符 a|b 如果其中a包含b,那么若校验字符串匹配a,则输出为a
let exp = /(ab|b)(cd)/g console.log('abcdbbb'.match(exp)) //[ 'abcd' ]
\b表示单词边界,输出的匹配像不显示
let exp = /(ab|,)(cd)(\b)/g console.log('ab,cd,bbb'.match(exp)) //[ ',cd' ]