Skip to content

Commit e30d9d4

Browse files
committed
minor
1 parent 3465665 commit e30d9d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

9-regular-expressions/02-regexp-methods/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ alert( str.search( *!*/a/i*/!* ) ); // 0 (first match at zero position)
4646
4747
**The important limitation: `search` only finds the first match.**
4848
49-
We can't find next positions using `search`, there's just no syntax for that. But there are other methods that can.
49+
We can't find next matches using `search`, there's just no syntax for that. But there are other methods that can.
5050
5151
## str.match(reg), no "g" flag
5252
@@ -215,9 +215,9 @@ alert('12-34-56'.split(/-/)) // array of [12, 34, 56]
215215
216216
## str.replace(str|reg, str|func)
217217
218-
That's actually a great method, one of most useful ones. The swiss army knife for searching and replacing.
218+
This is a generic method for searching and replacing, one of most useful ones. The swiss army knife for searching and replacing.
219219
220-
The simplest use -- searching and replacing a substring, like this:
220+
We can use it without regexps, to search and replace a substring:
221221
222222
```js run
223223
// replace a dash by a colon

0 commit comments

Comments
 (0)