Martin,
Thanks, but that is just what I was trying to avoid, since now I have to
create
a regular expression for every intermediate node to make sure I find all
transactions
which are not involving leaves. It isn't just Assets:Cash, or even three
accounts,
it's likely a dozen and I don't even know which dozen after all these years...
I was hoping for a ledgerific way of finding those transactions...
Thanks,
-=Doug
On 5/29/14 5:05 PM, Martin Michlmayr wrote:
> * Douglas Philips <[email protected]> [2014-05-29 16:35]:
>> I'm not sure if I agree with Craig as I do what Martin does as well.
>> However, let's say that Craig's "leaves only" approach is the better one.
>> Since ledger doesn't enforce that, how so I find all the transactions in
>> which
>> an amount is assigned to a non-leaf node without having to search for all
>> transactions
>> with two or more white space characters after each intermediate node's name?
>
> You can use regular expressions: ^ stands for the begin, $ for the
> end. In the example I gave you can do: reg 'Assets:Cash$'. This will
> *not* match Assets:Cash:foo
>
> ^foo will only match accounts starting with foo, e.g. bar:foo would
> not match, but foo:bar would.
--
---
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.