[alicebot-style] difference between wildcards "_" and "*"
Anne Kootstra
alicebot-style@list.alicebot.org
Sun, 20 Apr 2003 14:22:55 +0200
There is indeed a difference between the two. Have a look at AIML.info's
FAQ. A direct link can be found here:
http://www.aiml.info/modules.php?name=FAQ&myfaq=yes&id_cat=1&categories=Inte
rpreter-neutral+AIML#36
Take care,
--Anne
-----Oorspronkelijk bericht-----
Van: alicebot-style-admin@list.alicebot.org
[mailto:alicebot-style-admin@list.alicebot.org] Namens charlotte walther
Verzonden: zondag 20 april 2003 12:32
Aan: alicebot-style@list.alicebot.org
Onderwerp: [alicebot-style] difference between wildcards "_" and "*"
hi,
i am wondering what the difference between the wildcards "_" and "*" is?
first, i thought that "_" would function as a prefix and "*" as a sufix. but
in the following example in category 3 it doesn't seem to have the function
of a sufix.
<category>
<pattern>MOTHER</pattern> <template> Tell me more about your family.
</template>
</category>
<category>
<pattern>_ MOTHER</pattern> <template><srai>MOTHER</srai></template>
</category>
<category>
<pattern>MOTHER _</pattern>
template><srai>MOTHER</srai></template>
</category>
<category>
<pattern>_MOTHER *</pattern>
<template><srai>MOTHER</srai></template>
</category>
so, could you tell me where exactly the difference is and what role does it
play in the pattern matching algorithm?
thanks charlotte
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.