标签:
在使用正则表达式时,经常会用到()括号,[] 中括号,{}大括号,以下总结了这三者的区别:
[0-9]{0,9} 表示长度为 0 到 9 的数字字符串。
参考文章:
JavaScript正则表达式在线测试工具:http://tools.jb51.net/regex/javascript
msdn 正则表达式快速参与 https://msdn.microsoft.com/zh-cn/library/az24scfc(v=vs.110).aspx
正则表达式参考: http://ahkcn.github.io/docs/misc/RegEx-QuickRef.htm
标签:
原文地址:http://www.cnblogs.com/wisdo/p/5770095.html