Unable to match dollar sign in preg_match

From: Date: Mon, 23 Dec 2002 20:47:40 +0000
Subject: Unable to match dollar sign in preg_match
Groups: php.general 
Request: Send a blank email to php-general+get-129225@lists.php.net to get a copy of this message
Here's my expression: $data = "xyz_%split%_$10.21"; preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match); Returns nothing (escaping the $ with a \ does the same), but this returns 10.21: preg_match ("/^.*_\%split\%_\D*(\d*\.\d*)/", $data, $match); How is it done? -- Randall Perry sysTame Xserve Web Hosting/Co-location Website Development/Promotion Mac Consulting/Sales http://www.systame.com/

« previous php.general (#129225) next »