Skip to content
Merged
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
3 changes: 1 addition & 2 deletions 9-regular-expressions/17-regexp-methods/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ alert( firstMatch.index ); // 0
alert( firstMatch.input ); // <h1>Hello, world!</h1>
```

If we use `for..of` to loop over `matchAll` matches, then we don't need `Array.from`, разумеется, не нужен.
If we use `for..of` to loop over `matchAll` matches, then we don't need `Array.from` any more.

## str.split(regexp|substr, limit)

Expand Down Expand Up @@ -144,7 +144,6 @@ alert( '12-34-56'.replace( *!*/-/g*/!*, ":" ) ) // 12:34:56

The second argument is a replacement string. We can use special character in it:

| Symbols | Action in the replacement string |
| Symbols | Action in the replacement string |
|--------|--------|
|`$&`|inserts the whole match|
Expand Down