Regular Expressions - Match Numbers and Letters of the Alphabet

Tell us what’s happening:
Describe your issue in detail here.
why isn’t this working?
Did I miss anything?

Your code so far

let quoteSample = "Blueberry 3.141592653s are delicious.";
let myRegex = /h-s2-6/gi; // Change this line
let result = quoteSample.match(myRegex); // Change this line

 

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: Regular Expressions - Match Numbers and Letters of the Alphabet

Link to the challenge:

oh wait! I think I forget to add brackets in the regex. That’s why it didn’t work ig

1 Like

You got it! Takes some time but the solutions seep in.

1 Like