replacement

From: Date: Tue, 25 Jan 2005 20:16:48 +0000
Subject: replacement
Groups: php.general 
Request: Send a blank email to php-general+get-207292@lists.php.net to get a copy of this message
I'm trying to replace a substr of the string that start from "Rated blahblah;" azt the end semicolon. Example: safsagfasdfsdfdsfRated by 4 people;fafafaafafaf -> return safsagfasdfsdfdsffafafaafafaf $replacement =""; $pattern = "/Rated.+;/"; $found_str = preg_replace($pattern, $replacement, $found_str); Why this above, doesn't work?

« previous php.general (#207292) next »