2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2002-04-17 06:45:35 +00:00
|
|
|
<!-- $Revision: 1.2 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 -->
|
|
|
|
<refentry id="function.sql-regcase">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>sql_regcase</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Make regular expression for case insensitive match
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>string</type><methodname>sql_regcase</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
Returns a valid regular expression which will match
|
|
|
|
<parameter>string</parameter>, ignoring case. This expression is
|
|
|
|
<parameter>string</parameter> with each character converted to a
|
|
|
|
bracket expression; this bracket expression contains that
|
|
|
|
character's uppercase and lowercase form if applicable, otherwise
|
|
|
|
it contains the original character twice.
|
|
|
|
<example>
|
|
|
|
<title><function>sql_regcase</function> Example</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
echo sql_regcase ("Foo bar");
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
prints <screen>[Ff][Oo][Oo] [Bb][Aa][Rr]</screen>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This can be used to achieve case insensitive pattern matching in
|
|
|
|
products which support only case sensitive regular expressions.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|