fix/regex-lower-number-of-matches (#36004)

* fix/regex-lower-number-of-matches

* fix/update-guide

* fix/convert-blockquote-to-backticks
This commit is contained in:
Tom
2019-05-17 17:53:00 -05:00
committed by nik
parent d0982a951e
commit 21118bc26a
2 changed files with 12 additions and 10 deletions

View File

@@ -7,6 +7,8 @@ The Problem
Change the regex haRegex to match the word "Hazzah" only when it has four or more letter z's.
Solution
```js
let haStr = "Hazzzzah";
let haRegex = /Haz{4,30}ah/; // Change this line
let haRegex = /Haz{4,}ah/; // Change this line
let result = haRegex.test(haStr);
```