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:
@@ -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);
|
||||
```
|
||||
|
Reference in New Issue
Block a user