Add solution (#19228)
Add solution (https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-one-or-more-times)
This commit is contained in:
@ -54,6 +54,8 @@ let result = difficultSpelling.match(myRegex);
|
|||||||
<section id='solution'>
|
<section id='solution'>
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// solution required
|
let difficultSpelling = "Mississippi";
|
||||||
|
let myRegex = /s+/g; // Change this line
|
||||||
|
let result = difficultSpelling.match(myRegex);
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
|
Reference in New Issue
Block a user