* 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. -- Martin Michlmayr http://www.cyrius.com/ -- --- 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.
