Skip to content

Commit ee5853d

Browse files
authored
Merge pull request #2604 from odsantos/regex-methods
Fix typo.
2 parents e4ac603 + 11e0890 commit ee5853d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ alert('12-34-56'.replaceAll("-", ":")) // 12:34:56
247247

248248
## regexp.exec(str)
249249

250-
The method `regexp.exec(str)` method returns a match for `regexp` in the string `str`. Unlike previous methods, it's called on a regexp, not on a string.
250+
The `regexp.exec(str)` method returns a match for `regexp` in the string `str`. Unlike previous methods, it's called on a regexp, not on a string.
251251

252252
It behaves differently depending on whether the regexp has flag `pattern:g`.
253253

0 commit comments

Comments
 (0)