bskinn / pent

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

Helper functions to produce regex for number/sign types from patterns #100

Open bskinn opened 3 years ago

bskinn commented 3 years ago

The regexes for a given number type might be useful to users on their own, and it would be convenient to be able to spit them out using a subset of the pent minilanguage, rather than via indexing into a (currently) private dict with a 2-tuple of enums.