Javascript: add solution to hint Match Characters that Occur Zero or … (#19231)

This commit is contained in:
Gregory Gubarev
2018-10-21 10:56:48 +04:00
committed by Kristofer Koishigawa
parent 7aba109b03
commit 47bff1626b

View File

@ -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);
```