On Mon, 9 Jul 2001 15:26:51 -0700
Januk Aggarwal <[EMAIL PROTECTED]> wrote:

> SSV> say higher level or general) macros like %LANGUAGE or %SINGLERE
> SSV> can't be used inside of a quick template included by an %IF
> As far as I know, it should work.  You might want to check that there
> are no typos anywhere.  Also, inside the quick template, the nesting

You're right, it works. I can't retrace the problem but I assume I forgot
the quotation marks for the second string, because today I did the same
mistake and the result was similar.

But there is a positive side in everything:) Try this:
%IF:"string"="astringa":"matches":"does not match"

Of course, the result is "does not match". Now try this one:
%IF:"string"=astringa:"matches":"does not match"

Surprise (at least for me): it "matches". The first character after the =
sign (the 'a') was interpreted as a string delimiter, and the rest of the
line is considered as a string until another 'a' is not found. Which means
that any (?) character can be used as a string delimiter, not only " and '.

See you, Sandor who's trying to figure out what kind of regexp to use to say
"I want to match any string which contains 'domain' and is not precedeed
_somewhere_ by 'user'". So username@domain should not match, but
othername@domain should, and a lookbehind conditional subpattern can't be
used because it works only with fixed length:(
-- 
______________________________________________________
Archives   : <http://tbudl.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
TBTech List: <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>

You are subscribed as : [email protected]


Reply via email to