Skip to content

Commit

Permalink
Count capital vowels in example (mdn#12692)
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiAljazairi authored Feb 3, 2022
1 parent e04fd06 commit 0f71fe4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ Groups and ranges indicate groups and ranges of expression characters.

```js
var aliceExcerpt = "There was a long silence after this, and Alice could only hear whispers now and then.";
var regexpVowels = /[aeiouy]/g;
var regexpVowels = /[AEIOUYaeiouy]/g;

console.log("Number of vowels:", aliceExcerpt.match(regexpVowels).length);
// Number of vowels: 25
// Number of vowels: 26
```

### Using groups
Expand Down

0 comments on commit 0f71fe4

Please sign in to comment.