[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"><category></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"><pattern>MOTHER</pattern> <template> Tell me more about your family. </template><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"></category><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"><category><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"><pattern>_ MOTHER</pattern> <template><srai>MOTHER</srai></template><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"></category><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"><category><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"> <pattern>MOTHER _</pattern> </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"> </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"> template><srai>MOTHER</srai></template><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"></category><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"><category><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"><pattern>_MOTHER *</pattern><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'"><template><srai>MOTHER</srai></template><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"></category><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 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 </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--