Learn Functional Programming by Building a Spreadsheet - Step 37

Tell us what’s happening:

I’ve always struggled to create regex. I understand how it works, I’m amazed by what that can do, but I hate them.

Furthermore, I have this message error:

Your second new character class should match the digits 0 trrough 9

Technically, and please, correct me because I’m wrong, there is this second new character class that should match the digits between 0-9 no ? Should I have an /g at the end ?

Your code so far


const evalFormula = (x, cells) => {
  const idToText = id => cells.find(cell => cell.id === id).value;
  const rangeRegex = /([A-J])([1-9][0-9]?):([A-J])([1-9][0-9]?)/;
}


Your browser information:

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

Challenge Information:

Learn Functional Programming by Building a Spreadsheet - Step 37

Hi @A.I

You are supposed to code the range in stages. You coded for the complete range. Only do as much as the instructions ask.

Happy coding

1 Like

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