★ wanayoo — archive 1999 http://www.php.net/manual/function.sql-regcase.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Regexps
Quick Reference
Regexps
* ereg
* ereg_replace
* eregi
* eregi_replace
* split
* sql_regcase
Manual: sql_regcase
View the source code for this pageSearch the site



Previous page
 split
Semaphore 
Next page


sql_regcase

sql_regcase -- make regular expression for case insensitive match

Description

string sql_regcase (string string)

Returns a valid regular expression which will match string, ignoring case. This expression is string 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 1. sql_regcase() example

  1 
  2 echo sql_regcase( "Foo bar" );
  3 
prints
[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.


 About Notes


Previous page
 split
Semaphore 
Next page



Site Statistics


Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.