当前位置:网站首页>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 .
边栏推荐
- 正则及常用公式
- [play with FPGA learning 5 in simple terms ----- reset design]
- [play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]
- js数组常用方法
- TIPC messaging3
- 二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
- [in simple terms, play with FPGA learning 3 ----- basic grammar]
- 计算序列之和
- 【深入浅出玩转FPGA学习3-----基本语法】
- Leetcode+ 76 - 80 storm search topic
猜你喜欢

实验电镜距离测量之Matlab处理

Special topic of binary tree -- acwing 1589 Building binary search tree

全网显示 IP 归属地,是怎么实现的?

二叉树专题--AcWing 1589. 构建二叉搜索树
![[applinking practical case] share in app pictures through applinking](/img/12/5616f1fa55387b81e25e55a98022b9.png)
[applinking practical case] share in app pictures through applinking

从.bag文件中读取并保存.jpg图片和.pcd点云

Special topic of binary tree -- Logu p1229 traversal problem (the number of traversals in the middle order is calculated when the pre and post order traversals of the multiplication principle are know

Common methods of JS array

V2X-Sim数据集(上海交大&纽约大学)

V2x SIM dataset (Shanghai Jiaotong University & New York University)
随机推荐
PCL extracts a subset from a point cloud
洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
Summary of cases of players' disconnection and reconnection in Huawei online battle service
二叉树专题--AcWing 3384. 二叉树遍历(已知先序遍历 边建树 边输出中序遍历)
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
Luogu p5536 [xr-3] core city (greed + tree DP looking for the center of the tree)
【深入浅出玩转FPGA学习4----漫谈状态机设计】
One trick to quickly realize custom application titlebar
Nodejs+express+mysql simple blog building
Logu p3398 hamster looks for sugar (double LCA on the tree to judge whether the two paths in the tree intersect)
Matlab processing of distance measurement of experimental electron microscope
Openmldb meetup No.4 meeting minutes
二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
点云投影图片
AppGallery Connect场景化开发实战—图片存储分享
OpenMLDB Meetup No.4 会议纪要
2022爱分析· 国央企数字化厂商全景报告
Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)
Calculate the sum of sequences
使用华为性能管理服务,按需配置采样率