当前位置:网站首页>Regular expression integer positive integer some basic expressions
Regular expression integer positive integer some basic expressions
2022-07-07 14:02:00 【It is small new】
1 Find nonnegative integer (java We need two of them \\)
0|([1-9][0-9]*)
2 Matching positive integer
[1-9][0-9]*
3 Non positive integer
0|(-[1-9][0-9]*)
4 Negtive integer
-[1-9][0-9]*
5 Integers
0|(-?[1-9][0-9]*)
6 Nonnegative floating point number ( There can be 0)
^\\d+(\\.\\d+)?$
7 Positive floating point
^[1-9]+(\\.\\d+)?$ ^\\d+(\\.\\d+)?$
8 Non positive floating point number ( There can be 0)
^-\\d+(\\.\\d+)?$ ^-\\d+(\\.\\d+)?$
9 Negative floating point number
^-[1-9](\\.\\d+)?$
10 Floating point numbers
^[1-9]+(\\.\\d+)?$
11 from Numbers 、26 A string of English letters
[0-9a-zA-Z]+
intermediate
1 The length is 8-10 The user password of ( Start with a letter 、 Numbers 、 Underline )
^[a-zA-Z][a-zA-Z0-9_]{7,9}
2 Verify that the input can only be Chinese characters
^[\\u4Eoo-\\u9FFF]+
3 Email verification
^[http:\\]?[www.]?\\[email protected]\\w+\\.[a-z]{2,}$
4 URL Address verification
^[a-zA-z]+(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\S*)?$
5 Simple ID number verification
^[1-9]//d{5}(18|19|20|(3\\d))\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]&
边栏推荐
- SSRF vulnerability file pseudo protocol [netding Cup 2018] fakebook1
- Lavarel之环境配置 .env
- Custom thread pool rejection policy
- 现在网上开户安全么?那么网上开户选哪个证券公司?
- Laravel5 call to undefined function OpenSSL cipher IV length() error php7 failed to open OpenSSL extension
- 2022-7-6 Leetcode 977.有序数组的平方
- Help tenants
- AI talent cultivation new ideas, this live broadcast has what you care about
- 最佳实践 | 用腾讯云AI意愿核身为电话合规保驾护航
- AI人才培育新思路,这场直播有你关心的
猜你喜欢
Xshell connection server changes key login to password login
交付效率提升52倍,运营效率提升10倍,看《金融云原生技术实践案例汇编》(附下载)
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
社会责任·价值共创,中关村网络安全与信息化产业联盟对话网信企业家海泰方圆董事长姜海舟先生
供应链供需预估-[时间序列]
Realize the IP address home display function and number home query
2022-7-7 Leetcode 844. Compare strings with backspace
566. Reshaping the matrix
Help tenants
Use of polarscatter function in MATLAB
随机推荐
Beginner XML
【网络安全】sql注入语法汇总
Best practice | using Tencent cloud AI willingness to audit as the escort of telephone compliance
Environment configuration of lavarel env
Clickhouse (03) how to install and deploy Clickhouse
3D detection: fast visualization of 3D box and point cloud
SSRF漏洞file伪协议之[网鼎杯 2018]Fakebook1
Error lnk2019: unresolved external symbol
Parameter keywords final, flags, internal, mapping keywords internal
社会责任·价值共创,中关村网络安全与信息化产业联盟对话网信企业家海泰方圆董事长姜海舟先生
Huawei image address
室内ROS机器人导航调试记录(膨胀半径的选取经验)
Redis can only cache? Too out!
Realize the IP address home display function and number home query
PHP中用下划线开头的变量含义
How can the PC page call QQ for online chat?
Vmware 与主机之间传输文件
FCOS3D label assignment
Transferring files between VMware and host
手把手教会:XML建模