Skip to content

Commit 3bc6aa2

Browse files
authored
fix: typo
1 parent e641b4a commit 3bc6aa2

File tree

1 file changed

+1
-1
lines changed
  • 9-regular-expressions/01-regexp-introduction

1 file changed

+1
-1
lines changed

9-regular-expressions/01-regexp-introduction/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ alert( "We will, we will".replace(/we/ig, "I") ); // I will, I will
140140

141141
| 符号 | 在替换字符串中的行为 |
142142
|--------|--------|
143-
|`$&`|插入全部匹配项的内容|
143+
|`$&`|插入整个匹配项|
144144
|<code>$&#096;</code>|插入匹配项前面的一段字符串|
145145
|`$'`|插入匹配项后面的一段字符串|
146146
|`$n`|如果 `n` 是一个 1-2 位数,则会插入第 n 个括号中的内容,详见 <info:regexp-groups>|

0 commit comments

Comments
 (0)