Thank you, John. I'm grateful for your help.

Is there a guide to the meaning of the (regex?) operators in Ledger? Tilde, 
slash and % seem to have a variety of meanings and functions in different 
places that I'm not clear on. The manual contains some information but does 
not explain every case.

For example:


   1. What, for instance, is the meaning of the percent sign in "%no-gst"?
   2. Why is the (regex?) expression ^Expenses:Business (meaning, I assume, 
   an account whose name begins with those strings) sometimes enclosed in 
   /.../ and sometimes not? I take it that /.../ effectively 'quote' the 
   string but when do I need to do so?

I apologise if the answers to these questions are obvious. I looked through 
the manual without success.



On Friday, March 29, 2013 12:13:11 AM UTC+11, John Wiegley wrote:
>
> >>>>> Peter Gallagher <[email protected] <javascript:>> writes: 
>
> > = (not tag no-gst) and /^Expenses:Business/ 
>
> This query expression will not work.  I think you want: 
>
>     = not %no-gst and ^Expenses:Business 
>
> The alternative would be: 
>
>     = expr ((account =~ /^Expenses:Business/) & (! has_tag(/no-gst/))) 
>
> You can always use the "query" command in ledger to see how it's going to 
> interpret a query expression, as opposed to a full value expression. 
>
> John 
>

-- 

--- 
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/groups/opt_out.


Reply via email to