On Thursday, 21 May 2020 00:01:13 UTC+1, John Wiegley wrote:
>
> >>>>> "dw" == david whiting <[email protected] <javascript:>> writes: 
>
> dw> ledger.dat reg expr "note =~ /1234/" 
>
> It would be "tag("ID") =~ /1234/", for your example. Which is also what 
> '%ID=1234' should mean. 
>
> John 
>

Thanks. I think there's something I still don't understand. Given the 
following example.dat:

;; -*- mode: ledger -*-

account Assets:Members:Fred Smith
        ; ID:1234


account Assets:Members:Joe Public
        ; ID:5678


2020/05/21 Test
    Assets:Members:Fred Smith                     20 GBP
    Income:subs


2020/05/21 Test
    Assets:Members:Joe Public                     20 GBP
    Income:subs




When I do:

ledger -f example.dat reg Fred

I get the transaction for Fred. But when I try (with various forms of 
quoting in case that was the issue):

ledger -f example.dat reg "tag('ID') =~ 1234"
ledger -f example.dat reg 'tag("ID") =~ 1234'
ledger -f example.dat reg "tag("ID") =~ 1234"
ledger -f example.dat reg '%ID =~ 1234'
ledger -f example.dat reg "%ID =~ 1234"


I get no results. 

David

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/e4f434f6-226a-4f98-8693-97e04e8273b0%40googlegroups.com.

Reply via email to