note 28825 added to function.preg-replace
| From: | docuk at gmx dot net | Date: | Sat, 25 Jan 2003 01:36:02 +0000 |
| Subject: | note 28825 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42713@lists.php.net to get a copy of this message | ||
To remove IRC color codes, use the following code:
//$incoming is data containing irc color codes
$incoming = preg_replace("/".chr(3)."\d[0-5]?/", "", $incoming);
--
http://www.php.net/manual/en/function.preg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+28825
http://master.php.net/manage/user-notes.php?action=delete+28825
http://master.php.net/manage/user-notes.php?action=reject+28825