hledger/hledger-lib/Hledger/Read
Jonathan Dowland 8bfa382c68 feat: import: interpolate regex matches in field templates (#2009)
Replace occurrences of '\N' (where N is a positive number) in field
templates with the corresponding regular expression match group, if it
exists.

E.g. Warp the date to the first of the month for the second posting

    if %date (....-..)-..
        comment2 date:\1-01

E.g. Strip a prefix from an imported account name

    if %account1 liabilities:jon:(.*)
        account1 \1

Fixes #2009.

Signed-off-by: Jonathan Dowland <jon@dow.land>
2023-11-08 13:49:39 -08:00
..
Common.hs fix: auto postings: detect redundant costs properly (fix #2110) 2023-11-07 04:38:39 -08:00
CsvReader.hs feat: csv: rules files can be read directly; data file can be specified 2023-05-19 09:09:21 -10:00
CsvUtils.hs feat: cli: Add tsv output (#869) 2023-11-06 16:46:04 -08:00
InputOptions.hs imp: Generated/modified txns/postings are now tagged only with --verbose-tags 2023-04-29 18:25:11 -10:00
JournalReader.hs dev: AmountStyle: rename, reorder fields more mnemonically 2023-09-02 06:46:14 +01:00
LedgerReader.hs.disabled debug: move command parsing debug output down to level 8 2020-07-03 11:37:01 -07:00
RulesReader.hs feat: import: interpolate regex matches in field templates (#2009) 2023-11-08 13:49:39 -08:00
TimeclockReader.hs imp: timeclock: support comments and tags (fix #1220) 2023-05-03 00:05:11 -10:00
TimedotReader.hs dev:print: refactor, add AmountStyle "rounding strategy" 2023-10-18 13:56:24 +01:00