note 22757 added to pcre.pattern.syntax

From: Date: Fri, 28 Jun 2002 15:34:23 +0000
Subject: note 22757 added to pcre.pattern.syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-32372@lists.php.net to get a copy of this message
If you're dealing with textstrings which could come from mac | pc | unix then care attention to the different newline charackters. If you only want to remove them preg_replace( '/[\n\r]/', '', $text ) does the trick. -- http://www.php.net/manual/en/pcre.pattern.syntax.php http://master.php.net/manage/user-notes.php?action=edit+22757 http://master.php.net/manage/user-notes.php?action=delete+22757 http://master.php.net/manage/user-notes.php?action=reject+22757

« previous php.notes (#32372) next »