正则表达式
1.生成一个正则表达式regexObj
2.regexObj.test(str)
/10086/.test('10086') //true
/10086/.test('12314') //false
/10086/.test('x10086s') //true //true锚点
example1
字符类
example2
元字符
example3
量词
最后更新于