当前位置:网站首页>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协议
- 二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
- 二叉树专题--AcWing 19. 二叉树的下一个节点(找树中节点的后继)
- The most detailed MySQL installation tutorial
- 2. Hacking lab script off [detailed writeup]
- Jsp webshell Free from killing - The Foundation of JSP
- Oracle notes
- Calculate the sum of sequences
- How to use ide to automatically sign and debug Hongmeng application
- Learn open62541 -- [66] UA_ Generation method of string
猜你喜欢

MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)

HDU1236 排名(结构体排序)

nodejs+express+mysql简单博客搭建

二叉树专题--AcWing 18. 重建二叉树(利用前、中序遍历,构建二叉树)

二叉树专题--AcWing 1497. 树的遍历(利用后、中序遍历,构建二叉树)

集成学习概览

华为AppLinking中统一链接的创建和使用

Kustomize user manual

JSP webshell免殺——JSP的基礎

Flink two Open, implement Batch Lookup join (attached source)
随机推荐
PCL eigen introduction and simple use
[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
Special topic of binary tree -- acwing 1589 Building binary search tree
洛谷 P4281 [AHOI2008]紧急集合 / 聚会(树上倍增 LCA)
Special topic of binary tree -- acwing 3384 Binary tree traversal (known preorder traversal, while building a tree, while outputting middle order traversal)
华为联机对战服务玩家掉线重连案例总结
UWA report uses tips. Did you get it? (the fourth bullet)
【AGC】如何解决事件分析数据本地和AGC面板中显示不一致的问题?
如何用list组件实现tabbar标题栏
华为游戏初始化init失败,返回错误码907135000
HDU1228 A + B(map映射)
华为快应用中如何实现同时传递事件对象和自定义参数
Uncover the secrets of Huawei application market application statistics
618 what is the secret of dominating the list again? Nike's latest financial report gives the answer
How to implement tabbar title bar with list component
Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)
Analysis of hot spots in AI technology industry
【AppLinking实战案例】通过AppLinking分享应用内图片
力扣(LeetCode)182. 查找重复的电子邮箱(2022.07.01)
[AGC] build service 3 - authentication service example