Act fast, special offers end soon! Up to $294 is savings when you get Premium today.
Get offer codes

Regular Expressions Basics Answer not getting Submitted

Screen Link:

My Code:

pattern = r'\be-{0,1}\s{0,1}mails{0,1}\b'

What I expected to happen:
The result of the above pattern is matching the answer which is 141 and should be accepted/submitted

What actually happened:

But Dataquest is not allowing this answer to be submitted, we can only submit the answer which is given in the solution, no other patterns are accepted. No error message is shown, just the email mentions is highlighted in Red color.
1 Like

Hi @sohamdey.tcs

Your pattern seems correct, I checked it in my browser and it works fine. It will be accepted you can try again.

1 Like