26 Oct
2020
26 Oct
'20
2:01 p.m.
MRAB wrote:
The assertions could still fail because there's nothing there to say that a0, b0 and c0 are strings, or, indeed, that there isn't a comma in one of them. .
That's true. But that's a weakness of parsing any ambiguous pattern, even with regular expressions. It would be up to the user to make sure their pattern is not too ambiguous for their use case.