From 76988d603acacfe3fb9ae17d042bc513b37e4e91 Mon Sep 17 00:00:00 2001 From: Sebastian Araneda <53835335+sebaraneda@users.noreply.github.com> Date: Tue, 11 Jun 2024 09:59:19 -0500 Subject: [PATCH] docs: Update regular expression about readme (#2475) --- concepts/regular-expressions/about.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concepts/regular-expressions/about.md b/concepts/regular-expressions/about.md index 5bfa585f5d..3bf86f7aa1 100644 --- a/concepts/regular-expressions/about.md +++ b/concepts/regular-expressions/about.md @@ -14,7 +14,7 @@ This concept is focused on using regular expressions in JavaScript. If you want ## How to create Regular Expressions -In JavaScript, a regular expressions is mostly written in the format `/pattern/modifiers` where 'pattern' is the main regex, and 'modifiers' are a series of characters which we can add to indicate special options (like superpowers). +In JavaScript, regular expressions are mostly written in the format `/pattern/modifiers` where 'pattern' is the main regex, and 'modifiers' are a series of characters which we can add to indicate special options (like superpowers). Nevertheless, we have two ways of creating a regular expression: @@ -119,7 +119,7 @@ funnyQuote.match(regex3); ### Replace -The [replace()][mdn-regex-replace] method in JavaScript allows us to search for a value within a given string, and replacing it with a desired new value. +The [replace()][mdn-regex-replace] method in JavaScript allows us to search for a value within a given string, and replace it with a new value. ```javascript string.replace(searchValue, newValue);