Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复正则表达式第五节加粗*显示问题 #1202

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions notes/正则表达式.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* [九、前后查找](#九前后查找)
* [十、嵌入条件](#十嵌入条件)
* [参考资料](#参考资料)
<!-- GFM-TOC -->
<!-- GFM-TOC -->


## 一、概述
Expand Down Expand Up @@ -112,7 +112,7 @@ abc[^0-9]
## 五、重复匹配

- **\+** 匹配 1 个或者多个字符
- **\** * 匹配 0 个或者多个字符
- **\*** 匹配 0 个或者多个字符
- **?** 匹配 0 个或者 1 个字符

**应用**
Expand Down Expand Up @@ -283,7 +283,7 @@ IP 地址中每部分都是 0-255 的数字,用正则表达式匹配时以下

**替换正则表达式**

在第一个子表达式查找的结果加上 () ,然后加一个空格,在第三个和第五个字表达式查找的结果中间加上 - 进行分隔。
在第一个子表达式查找的结果加上 () ,然后加一个空格,在第三个和第五个子表达式查找的结果中间加上 - 进行分隔。

```
($1) $3-$5
Expand Down