<docbook><section><title>BifContainsAndREGEXSearchesProduceDifferentResults</title><para> </para><bridgehead class="http://www.w3.org/1999/xhtml:h2">Query Issues (SPARQL, SQL, etc.)</bridgehead>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"><computeroutput>bif:contains</computeroutput> and REGEX Searches Produce Different Results</bridgehead>
<computeroutput>bif:contains</computeroutput> looks for phrases or independent words, and it may normalize words that use non-canonical Unicode chars.
 It can also search in XML/HTML documents.
 In addition, even if one and the same query string is valid for both REGEX and <computeroutput>bif:contains</computeroutput>, then the meaning may differ.
 For REGEX, pattern &quot;Paris Hilton&quot; is precisely two words delimited by single whitespace byte.
 For <computeroutput> bif:contains</computeroutput>, &quot;Paris Hilton&quot; means that the document should contain word &quot;Paris&quot; and word &quot;Hilton&quot;, in any places and in any order.
 See <ulink url="http://docs.openlinksw.com/virtuoso/queryingftcols.html">http://docs.openlinksw.com/virtuoso/queryingftcols.html</ulink> for details of <computeroutput>bif:contains</computeroutput> query string syntax.
</section></docbook>