当前位置:网站首页>Regular and common formulas
Regular and common formulas
2022-07-02 11:07:00 【LHT-2787】
Regular basic symbols
^: Start symbol ,^x Said to x start
$: End symbol ,x$ Said to x ending
[n-m]: From n To m The number of
\d: Representation number , Equate to [0-9]
X{m}: By m individual X Character formation
Id card
18 Composition of ID card : Six digit birth area code + Eight digit date of birth code + Three digit sequence code + One digit check code
isIDCard=/^[1-9]\d{
5}[1-9]\d{
3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{
4}$/;
[1-9]\d{5}: Six digit birth area code , The birth area code does not begin with 0 start , So the first is [1-9].
[1-9]\d{3}: Four digit year of eight digit date of birth code , The same year does not begin with 0 start .
((0\d)|(1[0-2])): Two digit month of eight digit date of birth code ,| Express or , The form of month is 0\d Or is it 10、11、12.
(([0|1|2]\d)|3[0-1]): Two digit date of eight digit date of birth code , Date by 01 to 31.
\d{4}: Three digit sequence code + One digit check code , There are four .
15 Composition of ID card : Six digit birth area code + Six digit birth date code + Three digit sequence code
isIDCard=/^[1-9]\d{
7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{
3}$/;
[1-9]\d{7}: Six digit birth area code + Year of two digit date of birth code , The year here refers to the last two , Therefore, no first place cannot be 0 The limitation of , So the merger .
The following is related to 18 Bit similar .
边栏推荐
- Openmldb meetup No.4 meeting minutes
- Summary of cases of players' disconnection and reconnection in Huawei online battle service
- Uncover the secrets of Huawei application market application statistics
- 二叉树专题--AcWing 18. 重建二叉树(利用前、中序遍历,构建二叉树)
- 618 what is the secret of dominating the list again? Nike's latest financial report gives the answer
- PCL projection point cloud
- Leetcode 182 Find duplicate email (2022.07.01)
- AppGallery Connect场景化开发实战—图片存储分享
- 软件产品管理系统有哪些?12个最佳产品管理工具盘点
- [AGC] build service 3 - authentication service example
猜你喜欢
TIPC Service and Topology Tracking4
Creation and use of unified links in Huawei applinking
(5) Gear control setting of APA scene construction
flink二開,實現了個 batch lookup join(附源碼)
Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
One trick to quickly realize custom application titlebar
QT学习日记7——QMainWindow
快应用中实现自定义抽屉组件
Special topic of binary tree -- acwing 47 Path with a certain value in binary tree (preorder traversal)
二叉树专题--洛谷 P1229 遍历问题(乘法原理 已知前、后序遍历求中序遍历个数)
随机推荐
华为联机对战服务玩家掉线重连案例总结
Luogu p5536 [xr-3] core city (greed + tree DP looking for the center of the tree)
Common methods of JS array
【AGC】构建服务3-认证服务示例
VSCode工具使用
Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
php中self和static在方法中的区别
In the face of uncertainty, the role of supply chain
Flick two open, realized a batch lookup join (with source code)
P1055 [noip2008 popularization group] ISBN number
Shell programming 01_ Shell foundation
二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
一招快速实现自定义快应用titlebar
The most detailed MySQL installation tutorial
PCL eigen introduction and simple use
【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
JVM garbage collector
Leetcode 182 Find duplicate email (2022.07.01)
二叉树专题--AcWing 18. 重建二叉树(利用前、中序遍历,构建二叉树)
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)