[Tb] Agent syntax help

From: Mark Anderson <mac__AT__yeardley.demon.co.uk>
Date: Mon Mar 21 2005 - 07:55:36 EST

Assuming your PredictedBy attribute can have 1 or more values per note and
values are of the syntax:
Value 1
Value 1; Value 2
etc....

Then the following agent queries work when tested here. You might want to
start each query with: IsPrototype=false&AgentQuery=""
...so as to filter out prototypes setting PredictedBy values and agents
collecting PredictedBy value matches.

"Theory A":
IsPrototype=false&AgentQuery=""&(PredictedBy((^Theory A$)|(Theory
A;)|(Theory A$))&!PredictedBy(Theory A A))

"Theory AA":
IsPrototype=false&AgentQuery=""&(PredictedBy((^Theory A A$)|(Theory A
A;)|(Theory A A$))&!PredictedBy((^Theory A$)|(Theory A;)|(Theory A$)))

"Theory A" OR "Theory AA" (either or both):
IsPrototype=false&AgentQuery=""&PredictedBy(((Theory A;)|(Theory
A$))|((Theory A A;)|(Theory A A$)))

"Theory A" AND "Theory AA" (both):
IsPrototype=false&AgentQuery=""&(PredictedBy((Theory A;)|(Theory
A$))&PredictedBy((Theory A A;)|(Theory A A$)))

"Theory A" OR "Theory AA" (either NOT both):
IsPrototype=false&AgentQuery=""&(PredictedBy((^Theory A A$)|(Theory A
A;)|(Theory A A$))&!PredictedBy((^Theory A$)|(Theory A;)|(Theory
A$)))|(PredictedBy((^Theory A$)|(Theory A;)|(Theory A$))&!PredictedBy(Theory
A A)))

I'm sure someone with better Regular Expressions skills can condense the
RegExps a bit better (less verbose and/or faster).

A demo of the above, using TB v2.4 is at
http://homepage.mac.com/mwra/FileSharing1.html

Regards
Mark Anderson
Received on Mon Mar 21 12:55:36 2005

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 10:45:38 EST