Thanks, John.  There was an error in my cut&paste, the closing slash
was in the input file.

I made up the following simple test file (test.dat):

= account= /Expense/
   Liabilities .10

2011/07/31  Dummmy
   Expenses               100.00
   Assets


When I run "ledger -f test.dat bal

I get the following:

                -100  Assets
                 100  Expenses
--------------------
                   0

Is there an option I need to specify to get it to calculate and/or
display automatic transactions

On Sun, Jul 31, 2011 at 00:28, John Wiegley <[email protected]> wrote:
> Craig Earls <[email protected]> writes:
>
>> = expr account =~ /^
>>     Liabilities:test            0.5
>
> Use the same query you'd use on the command line:
>
>  = /(Expenses:(Medical|Clothing))/
>
> The "expr" version you specified was just missing a final /, but otherwise
> should have worked.
>
> John
>



-- 
Craig, Corona De Tucson, AZ
2008 Brunton Super Stalker
1989 BMW K75 Hannigan
enderw88.wordpress.com

Reply via email to