Home > PHP > Function > POSIX Regex > sql_regcase()

sql_regcase()

sql_regcase - Make regular expression for case insensitive match

Syntax

string sql_regcase (string $string)

Arguments

  • string - The input string.

Description

Creates a regular expression for a case insensitive match.

Version

PHP 4, 5

Return value

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.