Tell us what’s happening:
Describe your issue in detail here.
how the result comes “h1” instead of only “h” ?
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/99.0.4844.74 Safari/537.36
Challenge: Find Characters with Lazy Matching
Link to the challenge: