From 6418344d594b08069968f1715472ccfc1dbb4f86 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Thu, 31 Dec 2020 14:42:56 +0300 Subject: [PATCH] closes #2411 --- 9-regular-expressions/17-regexp-methods/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/9-regular-expressions/17-regexp-methods/article.md b/9-regular-expressions/17-regexp-methods/article.md index 0d5168b4..d4092181 100644 --- a/9-regular-expressions/17-regexp-methods/article.md +++ b/9-regular-expressions/17-regexp-methods/article.md @@ -95,13 +95,13 @@ Splits the string using the regexp (or a substring) as a delimiter. We can use `split` with strings, like this: ```js run -alert('12-34-56'.split('-')) // array of [12, 34, 56] +alert('12-34-56'.split('-')) // array of ['12', '34', '56'] ``` But we can split by a regular expression, the same way: ```js run -alert('12, 34, 56'.split(/,\s*/)) // array of [12, 34, 56] +alert('12, 34, 56'.split(/,\s*/)) // array of ['12', '34', '56'] ``` ## str.search(regexp)