note 121288 rejected from function.preg-replace by cmb

From: Date: Thu, 29 Jun 2017 12:05:44 +0000
Subject: note 121288 rejected from function.preg-replace by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209157@lists.php.net to get a copy of this message
Note Submitter: pbiss at pbcls dot com ---- Could really do with a PERL -> PHP conversion example or 2. I'm happy with perl regexps and love the way you can do things like $var =~ s/regexp/regexp/; PHP equivalent would be a preg_replace but I've just spent 4 hours failing to get it to work. All I get is syntax complaints about my arguments, even though my regexp seems to match up with appropriate examples. Nothing found in PHP.ini that might affect this.

« previous php.notes (#209157) next »