Added solution to reuse-patterns-using-capture-groups.english.md (#35144)

* Update reuse-patterns-using-capture-groups.english.md

* included whole solution
This commit is contained in:
Kirill Malev 2019-02-17 06:10:03 +03:00 committed by Randell Dawson
parent 380ffd9db3
commit bca4d896cc

View File

@ -70,6 +70,8 @@ let result = reRegex.test(repeatNum);
<section id='solution'>
```js
// solution required
let repeatNum = "42 42 42";
let reRegex = /^(\d+)\s\1\s\1$/;
let result = reRegex.test(repeatNum);
```
</section>