Check For Mixed Grouping of Characters -JS

Did you see the “Hints” page for this challenge?

Spoiler Alert - They did not hide the solution on that page, it is openly viewable in plain text. Don’t click it if you don’t want FCC solution yet!

but Hint 3 on that page is:

Hint 3

Use .* to allow for middle names.

. Which means “any single character”
*Which matches any string that contains zero or more occurrences of n ?

Have you considered Using .* to allow for middle names. Where matches any single character before “Roosevelt”?

Or where you looking for some totally different solution?

2 Likes