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:
parent
891152863a
commit
d644a2f494
@ -54,6 +54,8 @@ let result = difficultSpelling.match(myRegex);
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
// solution required
|
||||
let difficultSpelling = "Mississippi";
|
||||
let myRegex = /s+/g; // Change this line
|
||||
let result = difficultSpelling.match(myRegex);
|
||||
```
|
||||
</section>
|
||||
|
Loading…
x
Reference in New Issue
Block a user