File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ are after not after the word `The` or `the`.
318318### 5.1 不区分大小写
319319
320320` i ` 修饰符用于执行不区分大小写匹配。例如正则表达式 ` /The/gi ` ,表示: 大写字母 ` T ` ,后跟小写字母 ` h ` ,后跟字母 ` e ` 。
321- 但是在正则匹配结束时 ` i ` 标记会告诉正则表达式引擎忽略这种情况。正如你所看到的,我们还提供了 ` g ` 标记,因为我们要在整个输入字符串中搜索匹配。
321+ 但是在正则匹配结束时 ` i ` 标记会告诉正则表达式引擎忽略这种情况。正如你所看到的,我们还使用了 ` g ` 标记,因为我们要在整个输入字符串中搜索匹配。
322322
323323<pre >
324324"The" => <a href =" #learn-regex " ><strong >The</strong ></a > fat cat sat on the mat.
@@ -332,7 +332,7 @@ are after not after the word `The` or `the`.
332332
333333` g ` 修饰符用于执行全局匹配 (会查找所有匹配,不会在查找到第一个匹配时就停止)。
334334例如正则表达式 ` /.(at)/g ` ,表示: 除换行符之外的任意字符,后跟小写字母 ` a ` ,后跟小写字母 ` t ` 。
335- 因为我们在正则表达式的末尾提供了 ` g ` 标记,它会从整个输入字符串中找到每个匹配项。
335+ 因为我们在正则表达式的末尾使用了 ` g ` 标记,它会从整个输入字符串中找到每个匹配项。
336336
337337<pre >
338338".(at)" => The <a href =" #learn-regex " ><strong >fat</strong ></a > cat sat on the mat.
@@ -389,3 +389,5 @@ are after not after the word `The` or `the`.
389389## License
390390
391391MIT © [ Zeeshan Ahmed] ( mailto:ziishaned@gmail.com )
392+
393+ ** [ ⬆ top] ( #什么是正则表达式- ) **
You can’t perform that action at this time.
0 commit comments