hledger/hledger-lib
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
..
Hledger feat: import: interpolate regex matches in field templates (#2009) 2023-11-08 13:49:39 -08:00
other/ledger-parse cln: hlint: Clean up Functor related hlint warnings, and NOINLINE warning. 2021-08-27 06:13:56 -10:00
test test: doctest cleanups, use latest 2021-07-20 20:38:39 -10:00
Text lib: add Show to Table render functions for debugging 2023-10-17 11:46:00 +01:00
.date.m4 ;doc: update manuals 2023-09-11 09:57:30 +01:00
.ghci tools: .ghci for each package, sets shorter prompt 2016-04-15 16:06:45 -07:00
.version ;pkg: bump version to 1.31.99 2023-09-11 09:56:34 +01:00
.version.m4 ;pkg: bump version to 1.31.99 2023-09-11 09:56:34 +01:00
CHANGES.md ;doc: merge 1.31 changelogs 2023-09-11 09:55:38 +01:00
hledger-lib.cabal ;cabal: update cabal files 2023-10-04 10:03:35 +01:00
Hledger.hs ;doc:print: cleanups (#2085) 2023-10-18 14:02:59 +01:00
LICENSE split off hledger-lib package, containing core types & utils 2010-03-22 01:44:59 +00:00
package.yaml ;doc: package description cleanups 2023-10-04 10:03:35 +01:00
README.md ;doc: more tweaks to package readmes, hackage descriptions 2020-03-22 10:49:02 -07:00
Setup.hs Revert "remove Setup.hs files again, fixing a yesod devel warning" 2014-05-24 13:39:09 -07:00

hledger-lib

A reusable library containing hledger's core functionality. This is used by most hledger* packages so that they support the same common file formats, command line options, reports etc.

See also: the project README and home page.