(PHP 4, PHP 5)
sql_regcase — 产生用于不区分大小的匹配的正则表达式
$string
   )
   返回与 string
   相匹配的正则表达式,不论大小写字母。返回的表达式是将
   string
   中的每个字母字符转换为方括号表达式,该方括号表达式包含了该字母的大小写形式。其它字符保留不变。
  
Example #1 sql_regcase() 例子
<?php
echo sql_regcase ("Foo - bar.");
?>
以上例程会输出:
[Ff][Oo][Oo] - [Bb][Aa][Rr].
可以用于在仅支持区分大小写正则表达式的产品中完成不区分大小写的模式匹配。
自 PHP 5.3.0 起,已经废弃此函数。强烈建议不要应用此函数 。
string
     The input string.
   Returns a valid regular expression which will match
   string, ignoring case. This expression is
   string with each alphabetic character converted to
   a bracket expression; this bracket expression contains that character's
   uppercase and lowercase form.  Other characters remain unchanged.
  
Example #2 sql_regcase() example
<?php
echo sql_regcase("Foo - bar.");
?>
以上例程会输出:
[Ff][Oo][Oo] - [Bb][Aa][Rr].
This can be used to achieve case insensitive pattern matching in products which support only case sensitive regular expressions.