[pmwiki-users] ZAP error message...

Patrick R. Michaud pmichaud at pobox.com
Fri Oct 27 14:15:10 CDT 2006


On Fri, Oct 27, 2006 at 03:11:32PM -0400, The Editor wrote:
> But this helps me begin to get a hint of why there are all those /\ \
> / things in the search patterns. Could you help me fix this to work?
> Maybe:
> 
>   foreach ($p as $pp) $_POST[$pp] = preg_replace('/\:\)/', ':)' );

For simple fixed string replacements it's much better to use 
str_replace() in preference to preg_replace.  Thus:

    $_POST[$pp] = str_replace(':)', ':)', ... );

Pm




More information about the pmwiki-users mailing list