note 38399 deleted from function.sql-regcase by nlopess

From: Date: Fri, 19 Dec 2003 09:21:56 +0000
Subject: note 38399 deleted from function.sql-regcase by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62221@lists.php.net to get a copy of this message
Note Submitter: mstrass@gmx.de ---- if you want it to work with special characters like "ä", "ü" and "ö", just try this small fix: <?php // convert to regex style $regex = sql_regcase("Öffnung"); // before editing, output = Ö[Ff][Ff][Nn][Uu][Nn][Gg] // replace the "special" characters with regex style $regex = preg_replace("/([Öö])/","[Öö]",$regex); $regex = preg_replace("/([Ää])/","[Ää]",$regex); $regex = preg_replace("/([Üü])/","[Üü]",$regex); // after editing, output = [Öö][Ff][Ff][Nn][Uu][Nn][Gg] ?> finally a classical regex style is ready to be used.

« previous php.notes (#62221) next »