>>>>> Peter Gallagher <[email protected]> writes:

> 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.

There are query expressions, and there a value expressions.  The former is
strictly a subset and shorthand for the latter.

> For example:

>  1. What, for instance, is the meaning of the percent sign in "%no-gst"?

%no-gst is query expression syntax for the value expression "tag(/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?

// are only used in value expressions, never query expressions.

Query expressions are what the command-line uses, and what automated
transaction predicates use.

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

No problem.

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