Compare the passing test cases here for head, and here for tail.
Presumably it has something to do with the regex having to match head in order to get to body, whereas it can discard/ignore tail once it's grabbed body?
Unclear why this would lead to the None matching output, though. Seems like the head pattern has to be making a pair of length-zero matches immediately before the body content starts.
This seems like a really uncommon situation, though...and it's not like it makes the Parser fail to match. So, figuring it out seems really YAGNI.
Compare the passing test cases here for head, and here for tail.
Presumably it has something to do with the regex having to match head in order to get to body, whereas it can discard/ignore tail once it's grabbed body?
Unclear why this would lead to the
Nonematching output, though. Seems like the head pattern has to be making a pair of length-zero matches immediately before the body content starts.This seems like a really uncommon situation, though...and it's not like it makes the
Parserfail to match. So, figuring it out seems really YAGNI.