From 3465665ca79904dba05c18db31f34cec46e4d077 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 25 Apr 2019 21:19:15 +0200 Subject: [PATCH] minor --- 9-regular-expressions/02-regexp-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/02-regexp-methods/article.md b/9-regular-expressions/02-regexp-methods/article.md index 31a6283d..1472bc8e 100644 --- a/9-regular-expressions/02-regexp-methods/article.md +++ b/9-regular-expressions/02-regexp-methods/article.md @@ -41,7 +41,7 @@ We've seen this method already. It returns the position of the first match or `- ```js run let str = "A drop of ink may make a million think"; -alert( str.search( *!*/a/i*/!* ) ); // 0 (the first position) +alert( str.search( *!*/a/i*/!* ) ); // 0 (first match at zero position) ``` **The important limitation: `search` only finds the first match.**