You are viewing a single comment's thread. Return to all comments →
looks broken to me,
test cases use patterns like:
'xxx xx xx' with expected outcome true, and 'xx xxx xx' with expected outcome false.
both of which are not specified in the problem itself, which clearly asks for the pattern 'xx xx xx'
it's also never stated whether it should match from the start until the end of the string or as a sub-string aswell.
Seems like cookies are disabled on this browser, please enable them to open this website
Matching Whitespace & Non-Whitespace Character
You are viewing a single comment's thread. Return to all comments →
looks broken to me,
test cases use patterns like:
'xxx xx xx' with expected outcome true,
and 'xx xxx xx' with expected outcome false.
both of which are not specified in the problem itself, which clearly asks for the pattern 'xx xx xx'
it's also never stated whether it should match from the start until the end of the string or as a sub-string aswell.