13 lines
740 B
Markdown
13 lines
740 B
Markdown
|
---
|
|||
|
title: Specify Only the Lower Number of Matches
|
|||
|
localeTitle: 仅指定较低的匹配数
|
|||
|
---
|
|||
|
问题 只有当它有四个或更多字母z时才更改正则表达式haRegex以匹配单词“Hazzah”。
|
|||
|
|
|||
|
解 让haStr =“Hazzzzah”; 让haRegex = / Haz {4,30}啊/; //改变这一行 let result = haRegex.test(haStr);
|
|||
|
|
|||
|
## 仅指定较低的匹配数
|
|||
|
|
|||
|
这是一个存根。 [帮助我们的社区扩展它](https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/javascript-algorithms-and-data-structures/regular-expressions/specify-only-the-lower-number-of-matches/index.md) 。
|
|||
|
|
|||
|
[这种快速风格指南有助于确保您的拉取请求被接受](https://github.com/freecodecamp/guides/blob/master/README.md) 。
|