当前位置:网站首页>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]&
边栏推荐
- requires php ~7.1 -> your PHP version (7.0.18) does not satisfy that requirement
- 高等数学---第八章多元函数微分学1
- 3D detection: fast visualization of 3D box and point cloud
- 【AI实战】应用xgboost.XGBRegressor搭建空气质量预测模型(二)
- 2022-7-6 Leetcode27.移除元素——太久没有做题了,为双指针如此狼狈的一天
- 高等數學---第八章多元函數微分學1
- Data refresh of recyclerview
- FCOS3D label assignment
- Wired network IP address of VMware shared host
- Best practice | using Tencent cloud AI willingness to audit as the escort of telephone compliance
猜你喜欢
Redis只能做缓存?太out了!
作战图鉴:12大场景详述容器安全建设要求
SSRF漏洞file伪协议之[网鼎杯 2018]Fakebook1
XML文件的解析操作
Help tenants
566. 重塑矩阵
How to check the ram and ROM usage of MCU through Keil
Navicat运行sql文件导入数据不全或导入失败
Enregistrement de la navigation et de la mise en service du robot ROS intérieur (expérience de sélection du rayon de dilatation)
Supply chain supply and demand estimation - [time series]
随机推荐
Redis can only cache? Too out!
最佳实践 | 用腾讯云AI意愿核身为电话合规保驾护航
Vmware共享主机的有线网络IP地址
Clickhouse (03) how to install and deploy Clickhouse
"Song of ice and fire" in the eleventh issue of "open source Roundtable" -- how to balance the natural contradiction between open source and security?
Is it safe to open an account online now? Which securities company should I choose to open an account online?
2022-7-6 Leetcode27. Remove the element - I haven't done the problem for a long time. It's such an embarrassing day for double pointers
干货|总结那些漏洞工具的联动使用
Is the compass stock software reliable? Is it safe to trade stocks?
高等數學---第八章多元函數微分學1
Huawei image address
室內ROS機器人導航調試記錄(膨脹半徑的選取經驗)
现在网上开户安全么?那么网上开户选哪个证券公司?
.net core 关于redis的pipeline以及事务
Getting started with MySQL
. Net core about redis pipeline and transactions
Deep understanding of array related problems in C language
请问,redis没有消费消息,都在redis里堆着是怎么回事?用的是cerely 。
MySQL error 28 and solution
数据库系统概论-第一章绪论【概念模型、层次模型和三级模式(外模式、模式、内模式)】