正则笔记

+ >= 1

? <= 1

* >= 0

. 除了\n以外单字符

{n}

{n,}

{n,m}

^$匹配字符的开始与结束

Reg方法:

  match

  test

       exec

 

posted @ 2017-07-13 22:45  夏目桑  阅读(89)  评论(0编辑  收藏  举报