[正则表达式速查表](http://www.jb51.net/shouce/jquery1.82/regexp.html)
[常用正则表达式](http://www.jb51.net/shouce/jquery1.82/regexp.html)
|正则名称|表达式|
|--|--|
|用户名 |`/^[a-z0-9_-]{3,16}$/`|
|密码 |`/^[a-z0-9_-]{6,18}$/`|
|十六进制值 |`/^#?([a-f0-9]{6}|[a-f0-9]{3})$/`|
|电子邮箱 |`/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/`|
|电子邮箱 |`/^[a-z\d]+(\.[a-z\d]+)*@([\da-z](-[\da-z])?)+(\.{1,2}[a-z]+)+$/`|
|URL |`/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/`|
|Unicode汉字范围编码|`/^[\u2E80-\u9FFF]+$/`|
|HTML 标签 |`/^<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/`|
|IP 地址 |`/((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)/`|
|IP 地址 |`/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/`|
|删除代码\\注释| `(?<!http:|\S)//.*$`|
|图像匹配|`http://.*?(jpg|png)`|