当前位置:网站首页>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 .
边栏推荐
- 【深入浅出玩转FPGA学习3-----基本语法】
- PCL projection point cloud
- OpenMLDB Meetup No.4 会议纪要
- flink二开,实现了个 batch lookup join(附源码)
- 从.bag文件中读取并保存.jpg图片和.pcd点云
- P1055 [noip2008 popularization group] ISBN number
- TIPC Service and Topology Tracking4
- Special topic of binary tree -- acwing 1497 Traversal of the tree (use post and mid order traversal to build a binary tree)
- 首份中国企业敏捷实践白皮书发布| 附完整下载
- 6种单例模式的实现方式
猜你喜欢

Huawei game failed to initialize init with error code 907135000
![[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched](/img/5c/b0030fd5fbc07eb94013f2699c2a04.png)
[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched

How to transfer event objects and user-defined parameters simultaneously in Huawei express applications

HDU1234 开门人和关门人(水题)

QT学习日记7——QMainWindow

2022-06-17

Leetcode+ 76 - 80 storm search topic

【AppLinking实战案例】通过AppLinking分享应用内图片

JVM之垃圾回收器

Special topic of binary tree -- acwing 47 Path with a certain value in binary tree (preorder traversal)
随机推荐
Learn open62541 -- [66] UA_ Generation method of string
正则及常用公式
Luogu p4281 [ahoi2008] emergency gathering / gathering (tree doubling LCA)
QT学习日记8——资源文件添加
二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
Static variables in static function
实验电镜距离测量之Matlab处理
二叉树专题--AcWing 19. 二叉树的下一个节点(找树中节点的后继)
Matlab processing of distance measurement of experimental electron microscope
C#中索引器
【深入浅出玩转FPGA学习4----漫谈状态机设计】
Read H264 parameters from mediarecord recording
Binary tree topic -- Luogu p3884 [jloi2009] binary tree problem (DFS for binary tree depth BFS for binary tree width Dijkstra for shortest path)
Disassembling Meitu SaaS: driving the plane to change the engine
[play with FPGA learning 4 in simple terms ----- talk about state machine design]
(5) Gear control setting of APA scene construction
如何用list组件实现tabbar标题栏
一.STM32的开发环境,keil5/MDK5.14安装教程(附下载链接)
TIPC Cluster5
In the face of uncertainty, the role of supply chain