Tell us what’s happening:
The problem is that even when you write the right solution the test aren’t getting passed. The following code solves the challenge, but 2/5 of the tests fail.
Apologies for my grammar and spelling.
Your code so far
let myString = "Eleanor Roosevelt";
let myRegex = /(Franklin|Eleanor).*Roosevelt/g;
let result = myRegex.test(myString);
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0
.
Challenge: Check For Mixed Grouping of Characters
Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/regular-expressions/check-for-mixed-grouping-of-characters