Tell us what’s happening:
Describe your issue in detail here.
Your code so far
let text = "<h1>Winter is coming</h1>";
let myRegex = /<[a-z0-9]*?>/; // Change this line
let result = text.match(myRegex);
According to my little thinking and understanding of the regular expressions the [a-z0-9]* will omit the all the alphabets and numeric in the HTML tag preventing h1 between the <> from being executed or outputted on the console giving the same alternative solution to the problem…suggestions are highly welcomed feel free to correct my approach of the solution
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 Edg/118.0.2088.69
Challenge Information:
Regular Expressions - Find Characters with Lazy Matching