groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] condition: OR of two string comparisons


From: Carsten Kunze
Subject: Re: [Groff] condition: OR of two string comparisons
Date: Thu, 13 Nov 2014 17:55:53 +0100 (CET)

Steffen Nurpmeso <address@hidden> wrote:

> Well.  Why not restricting this by saying that a new conditional
> mode (don't nail me down onto it: .if @'LHS'RHS') is introduced
> where RHS (or LHS) is _not_ subject to token processing, but
> _only_ to regular expression matching, e.g.
> 
>   .ds idea La terre est femme
>   .i[ef]re '\\*[idea]'^.*?terre.*' .tm cryptic cryptic tralla lalala

Exactly.  Or the whole pattern could be a variable (containing the pattern).  
But a mix of literal pattern and variables does not make sense.

Carsten



reply via email to

[Prev in Thread] Current Thread [Next in Thread]