当前位置:网站首页>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
边栏推荐
- JS - for cycle case: Horse grain
- Logstash failed to create queue
- SQL injection experiment
- ERP 基础数据 概念
- Detailed explanation of digital certificate and Ca
- WARNING:tornado.access:404 GET /favicon.ico (172.16.8.1) 1.84ms [附静态文件设置]
- When submitting the laravel admin form and using the required verification, an error is reported when the value is 0
- CCNP_ Bt- Reissue
- MySQL installation and configuration under Windows
- 从零开始-实现JpetStore网站-1-建立项目框架以及项目介绍
猜你喜欢

When submitting the laravel admin form and using the required verification, an error is reported when the value is 0

Redis subscribe connection timeout interrupt problem solution

Buffer Overflow Vulnerability Lab

Learning record 4:einops / / cudnn benchamark=true // hook

Buuctf web (V)

MySQL sorts according to the specified order of the specified fields

Remote access and control

星巴克创始人:出于安全考量 或不再向非店内消费者开放“公厕”

ERP basic data Huaxia

Start from scratch - implement the jpetstore website -1- establish the project framework and project introduction
随机推荐
平面合并(MATLAB)
DHCP principle and configuration
How to modify desktop path in win10 system
Dfinity (ICP) development problems and solutions-6
星巴克创始人:出于安全考量 或不再向非店内消费者开放“公厕”
HCIP_ OSPF irregular area
Shell脚本常用开发规范
JS - set countdown for Date object case
What software can be used to solve the problems faced by the auto parts industry
Is signed or unsigned selected to create an integer field in MySQL? The answer is as follows:
Dest0g3 520迎新賽
抖音关键词搜索列表接口,超详细的接口对接步骤
How to install the bdtab (BD) new tab plug-in in edge browser (Graphic tutorial)
MySQL queries difference sets (missing data) by linking tables based on an associated field
Numeric types in SQL. Try to avoid using null as the default value
钉钉小程序 父子传参数对象 子组件页面不更新?
淘宝商品历史价格接口/商品历史价走势接口代码对接分享
【完全信息静态博弈-Nash均衡的特性】
Amino encoding protocol
Overall process analysis of account book operation in fabric0.6