正则表达式大全
来源:互联网 发布:监控平台的端口号 编辑:程序博客网 时间:2024/06/06 00:02
匹配中文字符的:[u4e00-u9fa5]
匹配双字节字符:[^x00-xff]
匹配空白行:ns*r
匹配email:w+([-+.]w+)@w+([-.]w+).w+([-.]w+)*
匹配网址:[a-zA-z]+://[^s]*
匹配账号是否合法(字母开头,允许5—16字节,允许字母数字下划线):^[a-zA-Z][a-zA-Z0-9_]{4,15}$
匹配IP:d+.d+.d+.d+
匹配中国居民身份证号码:d{15}|d{18}
匹配正整数:^[1-9]d*$
匹配负整数:^-[1-9]d*$
匹配整数:^-?[1-9]d*$
匹配非负整数(正整数 + 0):^[1-9]d*|0$
匹配非正整数(负整数 + 0):^-[1-9]d*|0$
匹配正浮点数:^[1-9]d*.d*|0.d*[1-9]d*$
匹配负浮点数:^-([1-9]d*.d*|0.d*[1-9]d*)$
匹配浮点数:^-?([1-9]d*.d*|0.d*[1-9]d*|0?.0+|0)$
0 0
- [转]正则表达式大全
- 正则表达式大全
- 正则表达式大全
- [转]正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- [转]正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 正则表达式大全
- 文章标题
- spring+hibernate事务的两种方式
- Android 当overridePendingTransition遇见了Fragment
- java 异常捕捉 ( try catch finally )
- Ubuntu 12.04 alternate 64位 执行文件,显示:bash: ***: No such file or directory
- 正则表达式大全
- 同是天涯淪落人
- 关于android蓝牙可见性设置
- 2015.6项目经历总结
- 初识JAVA中的PrintWriter/Scanner,文本的读入和写出
- css文字省略号
- hdu 4035 Maze 期望DP 待定系数法 ★★
- Xcode提示linker command failed with exit code 1 (use -v to see invocation)解决方法
- decode()和nvl()函数