Closed s16h closed 4 years ago
Did you mean parse("ab={}", "ab=cd")
? Because your expression and the string do not actually match.
If you're trying to match any characters at the beginning of the string, before the ...b=
part, you might be looking for something like this:
>>> parse("{}b={}", "ab=cd")
<Result ('a', 'cd') {}>
Or you could use search to find your parse pattern inside a larger string. Either way, looks like this report may be closed.
Thanks for the clarification. I has misunderstood.
Is it expected that
parse("b={}", "ab=cd")
isNone
? I was expecting to get<Result ('cd',) {}>
.