Skip to content

Commit 76988d6

Browse files
authored
docs: Update regular expression about readme (#2475)
1 parent bcde47e commit 76988d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

concepts/regular-expressions/about.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This concept is focused on using regular expressions in JavaScript. If you want
1414
1515
## How to create Regular Expressions
1616

17-
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).
17+
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).
1818

1919
Nevertheless, we have two ways of creating a regular expression:
2020

@@ -119,7 +119,7 @@ funnyQuote.match(regex3);
119119

120120
### Replace
121121

122-
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.
122+
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.
123123

124124
```javascript
125125
string.replace(searchValue, newValue);

0 commit comments

Comments
 (0)