当前位置:网站首页>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 .
边栏推荐
- TIPC介绍1
- 快应用中实现自定义抽屉组件
- 华为AppLinking中统一链接的创建和使用
- OpenMLDB Meetup No.4 会议纪要
- The URL in the RTSP setup header of the axis device cannot take a parameter
- TIPC messaging3
- Jsp webshell Free from killing - The Foundation of JSP
- Disassembling Meitu SaaS: driving the plane to change the engine
- 二叉树专题--AcWing 19. 二叉树的下一个节点(找树中节点的后继)
- Leetcode 182 Find duplicate email (2022.07.01)
猜你喜欢

QT learning diary 8 - resource file addition

One trick to quickly realize custom application titlebar

华为应用市场应用统计数据问题大揭秘

Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)
![[in simple terms, play with FPGA learning 3 ----- basic grammar]](/img/f0/0204fa5197033877dc0758203253ae.png)
[in simple terms, play with FPGA learning 3 ----- basic grammar]

TIPC 寻址2

华为快应用中如何实现同时传递事件对象和自定义参数

Easyexcel, a concise, fast and memory saving excel processing tool

OpenMLDB Meetup No.4 会议纪要

TIPC messaging3
随机推荐
2. Hacking lab script off [detailed writeup]
[play with FPGA learning 5 in simple terms ----- reset design]
HDU1236 排名(结构体排序)
Hdu1228 a + B (map mapping)
JSP webshell free -- webshell free
Primary key policy problem
php中self和static在方法中的区别
二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
How to use ide to automatically sign and debug Hongmeng application
Kustomize user manual
From Read and save in bag file Jpg pictures and PCD point cloud
Special topic of binary tree -- acwing 3540 Binary search tree building (use the board to build a binary search tree and output the pre -, middle -, and post sequence traversal)
Learn open62541 -- [66] UA_ Generation method of string
【AI应用】海康威视iVMS-4200软件安装
【AGC】构建服务3-认证服务示例
【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
使用华为性能管理服务,按需配置采样率
【深入浅出玩转FPGA学习5-----复位设计】
Luogu p4281 [ahoi2008] emergency gathering / gathering (tree doubling LCA)
2022-06-17