当前位置:网站首页>Regular Expression Basics
Regular Expression Basics
2022-07-31 05:47:00 【not used to having you】
1. Regular expressions, also known as regular expressions.
English: Regular Expression, often abbreviated as regex, regexp or RE in code), a concept in computer science.Regular expressions are usually used to retrieve and replace text that matches a certain pattern (rule).
Regular Expression_Baidu Encyclopedia (baidu.com)
As I understand it, the correct rules are arranged correctly according to the rules you set.
2. Features of regular expressions:
a. Very flexible, logical and functional;
b. Complex control of strings can be achieved quickly and in a very simple manner.
c. For newcomers, it is rather obscure and difficult to understand.
| () | Like math, it means it's a whole |
| ^ | matches the beginning of the input string |
| $ | matches the end of the input string |
| . | Wildcard [represents any character][does not match newline] |
| * | Matches 0 or more times |
| + | Match 1 or more times |
| \ | Escape characters |
| | | A choice between two items |
6.Modifier
| /i | Case insensitive |
| /A | Matching rules must match from the beginning |
| /s | will match all characters |
| /x | Whitespace characters in regular expressions are ignored |
边栏推荐
猜你喜欢
随机推荐
uni-app进阶之内嵌应用【day14】
wpf wrapPanel居中并从左到右排列
Memcached :安装
The interviewer asked me how to divide the database and the table?Fortunately, I summed up a set of eight-part essays
在kali上搭建vulhub漏洞靶场
tf.keras.utils.get_file()
mysql 的简单运用命令
leetcode-438. 找到字符串中所有字母异位词(滑动窗口)
03 【数据代理 事件处理】
PAT_乙级_真题练习_1007_素数对猜想
对于输出点是时间戳的渗透测试方法(以Oracle数据库为例)
leetcode-每日一题731. 我的日程安排表 II
Kubernetes certificate validity period modification
Quickly master concurrent programming --- the basics
代码执行漏洞
联盟链的真实场景在哪里
数据库上机实验7 数据库设计
GUCCI、LV等奢侈品巨头如何布局元宇宙的,其他品牌应该跟上吗?
wpf ScrowViewer水平滚动
基于web3.0使用钱包Metamask的三方登陆









