let myString = "Eleanor Roosevelt";
let myRegex = /(Franklin|Eleanor).*\sRoosevelt/; // Change this line
console.log(myRegex.test(myString)); // Change this line
// After passing the challenge experiment with myString and see how the grouping works
Just hit a wall and trying to pass the test - “Your result should return TRUE” (screenshot below). Can someone please provide feedback on what I’m missing and/or why the last test is failing?
Lol dammit thank you. Had to reset the exercise, then update the original last line for this code to pass:
let myString = "Eleanor Roosevelt";
let myRegex = /(Franklin|Eleanor).*\sRoosevelt/; // Change this line
console.log(myRegex.test(myString));
let result = true; // Change this line
// After passing the challenge experiment with myString and see how the grouping works