diff --git a/docs/regex.html b/docs/regex.html index 65078706..6b89de9e 100644 --- a/docs/regex.html +++ b/docs/regex.html @@ -1339,7 +1339,7 @@ -
表达式匹配示例
.arThe car parked in the garage.
ar[.]A garage is a good place to park a car.
+
表达式匹配示例
.arThe car parked in the garage.
ar[.]A garage is a good place to park a car.

方括号的句号就表示句号。表达式 ar[.] 匹配 ar. 字符串

否定字符集

@@ -1379,7 +1379,7 @@ -
表达式匹配示例
[a-z]*The car parked in the garage #21.
\s*cat\s*The fat cat sat on the concatenation.
+
表达式匹配示例
[a-z]*The car parked in the garage #21.
\s*cat\s*The fat cat sat on the concatenation.

表达式 [a-z]* 匹配一个行中所有以小写字母开头的字符串。

+

@@ -1439,8 +1439,8 @@ -
表达式匹配示例
[0-9]{2,3}The number was 9.9997 but we rounded it off to 10.0.
[0-9]{2,}The number was 9.9997 but we rounded it off to 10.0.
[0-9]{3}The number was 9.9997 but we rounded it off to 10.0.
- +
表达式匹配示例
[0-9]{2,3}The number was 9.9997 but we rounded it off to 10.0.
[0-9]{2,}The number was 9.9997 but we rounded it off to 10.0.
[0-9]{3}The number was 9.9997 but we rounded it off to 10.0.
+

(...) 特征标群

@@ -1834,7 +1834,7 @@ -
函数说明
re.findall返回包含所有匹配项的列表
re.finditer返回一个可迭代的匹配对象(每个匹配一个)
re.search如果字符串中的任何位置存在匹配项,则返回 Match 对象
re.split返回一个列表,其中字符串在每次匹配时被拆分
re.sub用字符串替换一个或多个匹配项
re.compile编译正则表达式模式供以后使用
re.escape返回所有非字母数字反斜杠的字符串
+
函数说明
re.findall返回包含所有匹配项的列表
re.finditer返回一个可迭代的匹配对象
(每个匹配一个)
re.search如果字符串中的任何位置存在匹配项,则返回 Match 对象
re.split返回一个列表,其中字符串在每次匹配时被拆分
re.sub用字符串替换一个或多个匹配项
re.compile编译正则表达式模式供以后使用
re.escape返回所有非字母数字反斜杠的字符串

Flags 标志

diff --git a/style/style.css b/style/style.css index 753e4cbf..15af3cfc 100644 --- a/style/style.css +++ b/style/style.css @@ -162,14 +162,17 @@ menu { padding: 0; } -yel { - color: var(--color-prettylights-syntax-variable); +yel, +yel code { + color: var(--color-prettylights-syntax-variable) !important; } -red { - color: var(--color-danger-fg); +red, +red code { + color: var(--color-danger-fg) !important; } -pur { - color: var(--color-prettylights-syntax-entity); +pur, +pur code { + color: var(--color-prettylights-syntax-entity) !important; } :is(.h3wrap-body, .wrap-body) p > code,