[correct solution]Find Characters with Lazy Matching

Tell us what’s happening:
Since the updated freecodecamp curriculam doesn’t show the output, It creates doubt. Both solutions pass the test. Which one is the correct solution?

Your code so far


**1.**

let text = "<h1>Winter is coming</h1>";
let myRegex = /<h1>.*?/; // Change this line
let result = text.match(myRegex);

**2**

let text = "<h1>Winter is coming</h1>";
let myRegex = /<h1.*?>/; // Change this line
let result = text.match(myRegex);


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/find-characters-with-lazy-matching