let starWars = "Star Wars";
let starWarsRegex = /Star Wars.*/gi;
let result = starWars.match( starWarsRegex );
Your regex should match “Star Wars: The Phantom Menace”. OK
Your regex should match “Star Wars: Attack of the Clones”. NOT OK
Your regex should match “Star Wars: Revenge of the Sith”. OK
Your regex should match “Star Wars: A New Hope”. NOT OK
Your regex should match “Star Wars: The Empire Strikes Back”. OK
Your regex should match “Star Wars: Return of the Jedi”. NOT OK
Your regex should match “Star Wars: The Force Awakens”. OK
Your regex should not match “The Clone Wars” OK
In this same lesson, why the third one returns null? I get that there are no "g"s, pero there are some “o” letters on the string… I guess I’m not getting this yet…
The reason why the third one returns null is that even if there is an ‘o’ or not, it must be preceded by a ‘g.’ The 'o’s in the string “Over the moon” don’t come after a ‘g.’