I’m stuck here as well. Here’s my code:
const dollarRegex = /[0-9]+ hundred| thousand| million| billion dollars/i;
I get the message:
Your
dollarRegex
should use the|
token to matchhundred
,thousand
,million
, orbillion
.
If I put a | before hundred, or after billion, I get the msg:
- Your dollarRegex should have three | tokens.>
So what am I supposed to do? Iogically, I think the [numbers & hundred] and [billions & dollars] should be separated. Yet, I’m not allowed more than 3 alternate sequences.