On 2018-08-28 14:49, John Wiegley wrote:
>>>>>> "CP" == Clément Pit-Claudel <[email protected]> writes:
>
> CP> Works great, thanks! Any way to filter on the value of the tag?
>
> It should be: tag(/travel/) =~ /foo/
>
> This means: Does any tag matching the regexp /travel/ have a value whose
> string representation matches the regexp foo?
>
> If you use tag("travel"), then you're matching on a (case insensitive) exact
> match on the full name of the tag.
Thanks, it looks promising :)
But with this file as input, the query [ledger -f test.ledger reg --limit
'tag(/travel/) =~ /Finland/'] doesn't return anything:
2018-08-21 A
Expenses:XYZ $10 ; :travel: Finland
Assets:Stash
2018-08-22 B
Expenses:ABC $3
Assets:Stash
Thanks again!
Clément.
--
---
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].
For more options, visit https://groups.google.com/d/optout.