bskinn / pent

pent Extracts Numerical Text -- Mini-language driven parser for structured numerical data in text
MIT License
20 stars 3 forks source link

Add Parser methods to return matched *text* #72

Open bskinn opened 5 years ago

bskinn commented 5 years ago

This is as opposed to returning just the content marked with capture flags... essentially returning the .group("head"), etc.

Probably implement a no-arg call that provides everything the Parser matched, with bool head/body/tail args (all defaulting to True) to select among the subsets.