Re: Unable to match dollar sign in preg_match
| From: | Randall Perry | Date: | Mon, 23 Dec 2002 21:06:36 +0000 |
| Subject: | Re: Unable to match dollar sign in preg_match | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129228@lists.php.net to get a copy of this message | ||
Hokay, that works, but what's with the triple backslashes?
>> preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match);
>
> Should be
>
> preg_match ("/^.*_\%split\%_\\\$(\d*\.\d*)/", $data, $match);
>
> ---John W. Holmes...
>
> PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> today. http://www.phparch.com/
>
>
--
Randall Perry
sysTame
Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales
http://www.systame.com/