This Code does bypass all of the tests.
But I would like to know if there s any other way to implement
Franklin D. Roosevelt without adding (Franklin | Franklin D.) both and just by adding one Franklin and a “D.” somewhere?
Your code so far
let myString = "Eleanor Roosevelt"; let myRegex = /(Franklin|Eleanor|Franklin D.)\sRoosevelt/; // Change this line let result = myRegex.test(myString); // Change this line // After passing the challenge experiment with myString and see how the grouping works
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36.
Challenge: Check For Mixed Grouping of Characters
Link to the challenge: