Regular Expressions - Check For Mixed Grouping of Characters

Tell us what’s happening:
why do we need to add .* for a middle name?

Your code so far

let myString = "Eleanor Roosevelt";
let myRegex = /(Fanklin|Elenor)/; // 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/106.0.0.0 Safari/537.36

Challenge: Regular Expressions - Check For Mixed Grouping of Characters

Link to the challenge:

Which .* are you referring to? I don’t see it in your code.

.* in regex means any number of characters from 0 up.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.