DEV Community

Discussion on: Daily Challenge #232 - Regex Pattern

Collapse
 
qm3ster profile image
Mihail Malo

You did "string consists only of", not "string includes all of".
The intended result matrix is:

assert(pattern.test("zbca"))
assert(pattern.test("zbaczzz"))
assert(!pattern.test("zac"))
assert(!pattern.test("zcb"))