Learn Functional Programming by Building a Spreadsheet - Step 73

Tell us what’s happening:

I’ve tested my regex and it seems to be doing what the question asks, but I’m getting the following failure text:

Your second capture group should match a * or / operator. Use a character class in the capture group.

Does it not do that?

Your code so far

const highPrecedence = str => {
  const regex = /([\d.]+)([\*\/])([\d.]+)/;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn Functional Programming by Building a Spreadsheet - Step 73

You do not need to escape *

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.