preg_replace pain!

From: Date: Thu, 18 Jan 2001 06:40:30 +0000
Subject: preg_replace pain!
Groups: php.general 
Request: Send a blank email to php-general+get-35256@lists.php.net to get a copy of this message
I was hoping someone could help me with this regular expression... $pattern = "/\[b\](.*)\[\/b\]/Ui"; $message = preg_replace($pattern, "<B>\\1</B>", $message); The above works for: [b]bold text[/b] But does not work for: [b]bold text w/ newline[/b] Can anyone help me sort this little issue out? Many thanks!! Nick

« previous php.general (#35256) next »