
               Wildcards, patterns and pattern matching
              ==========================================

JS_Toss (and JS-Areafix) use 2 different wildcards classes:

 the AmigaDOS onces ("#?", etc)
 the JS_Toss onces (only "*" and "!")


To  avoid  confusion:  Generally  AmigaDOS patterns are used expect in
fido  addresses.  Here  the JS_Toss own wildcards are used and only in
some  special  ways! But you should know of them or you never will see
how easy it is to work with JS_Toss.


                     wildcards in fido addresses
                     ---------------------------

The following commands allow wildcards in their fido addresses:

in config file

 TRACK (if address is specified)
 ROUTE (only in "foraddresse")
 ATTACH
 AUTONEW

in zone config

 LOCK
 READONLY


There are currently two possible wildcards, the asterisk ("*") and the
exclamation  mark ("!"). It is possible to use wildcards in zone, net,
node and/or point of a Fido addresse.

The  asterisk  stands for "all" and may replace a complete part (zone,
net, node, point) of the address or the rest.

Examples:

ROUTE 2:24*/*.* 2:24/0.0        ; every addresse for zone 2
                                ; beginning with 24 
ATTACH 2:2454/55*.*             ; every address in zone 2 net 2454
                                ; which node starts with 55
                                ; (/550, /551, /5514, /55, ...)
ATTACH *:*/*.1*                 ; all points that start with one
                                ; (.1, .11, .10, .100, etc)

some NOT allowed patterns:

2:*24/*.*, 2:2454/1*0.*         ; the asterisk can only replace
                                ; the complete or the last part
                                ; NOT the first or middle


The  exclamation  mark  has  a  similar  meaning like the asterisk. It
stands  for  "all  expect  zero"  and may only replace a complete part
(zone  ,net,  etc). It is somehow like the C language NOT EQUAL - only
numbers NOT EQUAL zero are allowed. This wildcard was especially added
to allow term like "for all but not the sysop".

Examples:

READONLY 2:2454/1.!             ; echo is readonly for all points
                                ; of this node but NOT for the node
                                ; itself

LOCKED 2:*/!.*                  ; this echo is locked for all nodes
                                ; with a node number not zero
                                ; (which are nearly all)


Use  JS_CheckAddress program to test allowed patterns. You might get a
result if you use not allowed patterns but this result may change from
release to resease! Usage of program:

to check pattern:       JS_CheckAddress <address pattern>
to check matching:      JS_CheckAddress <address pattern> <address>


                          AmigaDOS wildcards
                          ------------------

Well,  here  is  not  the place to describe all AmigaDOS wildcards and
their  combinations  -  please  look  in  you AmigaDOS manual. But you
should know the commands that support them:

in config file:

 NAME


JS-Areafix user commands:

 +
 -
 
That's it.

---------------------------------------------------------------------
FTSC = Fido Technical Standard Committee

Fido  and  FidoNet  are  registered  marks  of  Tom  Jennings and Fido
Software.
