Debugging patterns would be facilitated by a quick helper function as in:
>>> from pent import parse_pattern
>>> parse_pattern(pattern="&+", text="foo bar baz")
[[['foo', 'bar', 'baz']]]
Other permutations of this may be helpful, too. Be careful of YAGNI.
Debugging patterns would be facilitated by a quick helper function as in:
Other permutations of this may be helpful, too. Be careful of YAGNI.