Learn Functional Programming by Building a Spreadsheet - Step 36

Your rangeRegex should use a character class in the capture group.

const evalFormula = (x, cells) => {
const idToText = id => cells.find(cell => cell.id === id).value;
const rangeRegex=/([A-J]\d+:[A-J]\d+)/;

}

You are doing more than the instructions asked.

“…a regular expression that matches A through J (the range of columns in your spreadsheet)”

You just want to match one letter that can be A through J

“Use a capture group with a character class to achieve this.”

Turn the one match into a capture group.

That’s all you should do in this step.

thanks alot i 've got that!

1 Like

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