Skip to content

Commit

Permalink
docs: Update regular expression about readme (#2475)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebaraneda committed Jun 11, 2024
1 parent bcde47e commit 76988d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concepts/regular-expressions/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 76988d6

Please sign in to comment.