Javascript: add solution to hint Match Characters that Occur Zero or … (#19231)
This commit is contained in:
committed by
Kristofer Koishigawa
parent
7aba109b03
commit
47bff1626b
@ -27,3 +27,12 @@ let regexStar = /wo*w/;
|
||||
regexPlus.test(phrase); // returns true
|
||||
regexStar.test(phrase); // returns true
|
||||
```
|
||||
|
||||
### Solution:
|
||||
|
||||
```js
|
||||
let chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
|
||||
let chewieRegex = /Aa*/; // Change this line
|
||||
let result = chewieQuote.match(chewieRegex);
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user