当前位置:网站首页>regular expression
regular expression
2022-06-13 08:24:00 【tingkeaiii】
Match symbol :
d? d appear 0/1 Time
a* a Can appear 0/ many times
a+ a More than one occurrence
a{6} a appear 6 Time
a{2,} a appear 2 More than once
a{2,6} a appear 2-6 Time
Match multiple characters :
(ab)+ ab More than one occurrence
Or operations :
a (cat|dog) matching a cat or a dog
a cat|dog matching a cat or dog
Character class :
Match by abc Data of composition 【abc】+ abc More than one occurrence abc aabbcc
【a-zA-Z0-9】 ABCabc123
^ exclude 【^0-9】 matching 0-9 Other data ( Include line breaks )
Metacharacters
\d Numeric character \d+ Match more than one number
\D Nonnumeric character
\w Word characters word Numbers Underscores are English characters
\W Nonword character
\s Blank character Contains spaces and line breaks
\S Nonwhite space character
\b The boundary of words The beginning or end of a word The boundary before words and symbols
\B The boundary of non words Symbols and symbols The boundary between words
. Any character does not contain a newline character
\. Express . adopt \ Made a change of mind
^ Match the beginning of the line $ Match the end of the line
*+{} Greedy matching
strongbhttps://www.wondershare. com/strong/b
.+ Will match the whole string Because it's a greedy match
.+? Match only two tag codes ,? Set to lazy matching
边栏推荐
- DHCP principle and configuration
- ERP基础数据 金蝶
- Remote access and control
- Overall process analysis of account book operation in fabric0.6
- Data accuracy problems caused by inconsistent data types during sum in MySQL
- How to efficiently manage commodities and inventory in the beverage wholesale industry
- Penetration problem (main directory, password explosion, database uploading Trojan horse)
- Edge浏览器使用BdTab新标签页插件(BD新标签页)
- Determine whether a string is rotated from another string
- HCIP_ MGRE experiment
猜你喜欢

Notes on development experience: TP5 exp query, SQL analysis, JQ, applet, right-click menu, Linux skills, shell skills, mysql, etc

Disk management and disk partition operation

Overall process analysis of account book operation in fabric0.6

BD新标签页(BdTab)插件如何登入?

Is there any good management software to solve the problems faced by tea wholesalers

学习记录4: einops // cudnn.benchamark=true // hook

JS - set countdown for Date object case

Dfinity (ICP) identity authentication and ledger quick start-3

JS - simple ATM of the for cycle case

Document contains question type
随机推荐
淘宝商品销量接口/淘宝商品销量监控接口/商品累计销量接口
Start from scratch - implement the jpetstore website -1- establish the project framework and project introduction
File upload question type
How does the BD new tab plug-in log in?
Wechat upload picture material interface
Buuctf web (VI)
CCNP_ Bt-ospf big experiment (1)
微服务项目搭建二:数据库设计
CCNP_ BT-MGRE
HCIP_ Static experiment
JS - for cycle case: Horse grain
Edge浏览器如何安装BdTab(BD)新标签页插件(图文教程)
How to efficiently manage commodities and inventory in the beverage wholesale industry
BD新标签页(BdTab)插件如何登入?
Deploy Yum warehouse and NFS shared services
【博弈论-完全信息静态博弈】 Nash均衡的应用
Set implements list search and exclusion
Dest0g3 520迎新賽
关于redis使用分布式锁的封装工具类
JS - print 99 multiplication table of the for cycle case