当前位置:网站首页>Regular expression learning notes
Regular expression learning notes
2022-07-22 20:38:00 【DmrForever】
Matching rules
abc… Letters
123… Digits
\d Any Digit
\D Any Non-digit character
. Any Character
\. Period
[abc] Only a, b, or c
[^abc] Not a, b, nor c
[a-z] Characters a to z
[0-9] Numbers 0 to 9
\w Any Alphanumeric character
\W Any Non-alphanumeric character
{m} m Repetitions
{m,n} m to n Repetitions
* Zero or more repetitions
+ One or more repetitions
? Optional character
\s Any Whitespace
\S Any Non-whitespace character
^…$ Starts and ends
(…) Capture Group
(a(bc)) Capture Sub-group
(.*) Capture all
(abc|def) Matches abc or def
Learning website
边栏推荐
猜你喜欢
She studied in the fourth series of strength, changed her tutor twice in six years, and with a little "stubbornness", Yu Zhou became one of the pioneers of social Chatbot
Chain stack implementation (C language)
自动电流镜布局 (ACML) 工具
LeetCode146——LRU Cache——DS Design
模拟QQ登陆界面
Canny based subpixel severity algorithm
本地镜像发布到阿里云
JSON output to file line by line in format
进程fork
Process fork
随机推荐
redission看门狗实现机制一看就懂
1076 forwards on Weibo (30 points)
1045 favorite color stripe (30 points)
redission看门狗实现过程详解
电荷分级DAC中二元加权电容器的寄生感知大小和详细路由
1038 recover the smallest number (30 points)
【文献阅读与想法笔记13】Pre-Trained Image Processing Transformer
希尔排序(最小增量排序)
Hill sort (minimum incremental sort)
mysql重要配置参数整理
1072 gas station (30 points)
Pat-2021 winter exam (Full Score)
配置属于自己的Vim-编辑器之神
Reinforcement learning weekly 39: approximate optimal depth, multi-agent generalization, character animation reinforcement learning
vim配置
Vim学习之旅
链栈实现(C语言)
Deep understanding of MMAP function
7-1 fake news (20 points)
redission扣库存demo