Tell us what’s happening:
Will someone explain what is happening behind the scene?
Description says Lazy and Greedy…I got it but I wish to understand the behind-the-scene concept.
Your code so far
let text = "<h1>Winter is coming</h1>"; let myRegex = /<.*?>/; // Change this line let result = text.match(myRegex);
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36.
Challenge: Find Characters with Lazy Matching
Link to the challenge: