js 正则(自己一点点的笔记)

alert(/[abc]/.test("c"));                            //true
alert("a bat ,a Cat,a fAt bat ,a faT cat".match(/[bcf]at/gi));      //bat,Cat,fAt,bat,faT,cat

reg.test(str)

str.match(reg)

posted on 2017-05-11 11:45  _jackie  阅读(285)  评论(0编辑  收藏  举报

导航