Re: Re: Arrrr The Space is gone.
| From: | CC Zona | Date: | Sun, 27 Jan 2002 05:36:00 +0000 |
| Subject: | Re: Re: Arrrr The Space is gone. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82271@lists.php.net to get a copy of this message | ||
In article <004d01c1a6f2$cb909070$0401a8c0@philip>,
newmanpj@philipsdomain.com (Philip J. Newman) wrote:
> This returns an error
>
> $q=preg replace("/[^ \w]/","",$q);
>
> Parse error: parse error in d:\hosting\http\philipsdomain\config.php on line
> 41
>
> Suggestions?
I think ezmlm must strip underscores from messages, 'cuz a lot of posts
(though, oddly, not all...) seem to be missing them from otherwise
valid/functioning code. The function is named "preg_replace" (an
underscore between the words), not "preg replace" (with a space).
--
CC