I'm using the parse library and ran into surprising (to me) functionality: it does not match empty strings:
>>> from parse import parse
>>> parse('hi "{}"', 'hi "everybody"')
<Result ('everybody',) {}>
>>> parse('hi "{}"', 'hi ""')
>>>
Is there a way, using parse, to get it to match any string between "" in the same way that re does:
>>> from re import match
>>> match('hi "(.*)"', 'hi "everybody"').groups()
('everybody',)
>>> match('hi "(.*)"', 'hi ""').groups()
('',)
""inside of'hi ""'isn't an empty string."s is empty."'s, just as there is no string between thehand theiin'hi'."s. I wantparseto give me back an empty string in that case.