[alicebot-style] difference between wildcards "_" and "*"

charlotte walther alicebot-style@list.alicebot.org
Sun, 20 Apr 2003 03:32:22 -0700 (PDT)


--0-1130932192-1050834742=:84535
Content-Type: text/plain; charset=us-ascii

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.
--0-1130932192-1050834742=:84535
Content-Type: text/html; charset=us-ascii

<DIV>
<DIV>hi,</DIV>
<DIV>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.</DIV>
<DIV><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;category&gt;</SPAN></I><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-fareast-font-family: 'Arial Unicode MS'"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></I></DIV>
<DIV>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;pattern&gt;MOTHER&lt;/pattern&gt; &lt;template&gt; Tell me more about your family. &lt;/template&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;/category&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;category&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;pattern&gt;_ MOTHER&lt;/pattern&gt; &lt;template&gt;&lt;srai&gt;MOTHER&lt;/srai&gt;&lt;/template&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;/category&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;category&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pattern&gt;MOTHER _&lt;/pattern&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></I><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&nbsp; </SPAN></I></P>
<P class=MsoNormal style="tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; template&gt;&lt;srai&gt;MOTHER&lt;/srai&gt;&lt;/template&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;/category&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;category&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;pattern&gt;_MOTHER *&lt;/pattern&gt;<o:p></o:p></SPAN></I></P>
<P class=author style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US; mso-bidi-font-family: 'Arial Unicode MS'">&lt;template&gt;&lt;srai&gt;MOTHER&lt;/srai&gt;&lt;/template&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="MARGIN-LEFT: 70.8pt; tab-stops: 288.0pt"><I style="mso-bidi-font-style: normal"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US">&lt;/category&gt;<o:p></o:p></SPAN></I></P>
<P class=MsoNormal style="tab-stops: 288.0pt"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US"><SPAN style="mso-spacerun: yes">so, could&nbsp;you tell me where exactly the difference is and what role does it play in the pattern matching algorithm?</SPAN></SPAN></P>
<P class=MsoNormal style="tab-stops: 288.0pt"><SPAN lang=EN-US style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-US"><SPAN style="mso-spacerun: yes">thanks charlotte&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><o:p></o:p></SPAN></P></DIV></DIV><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo.
--0-1130932192-1050834742=:84535--