note 121288 added to function.preg-replace
| From: | pbiss at pbcls dot com | Date: | Thu, 29 Jun 2017 11:31:37 +0000 |
| Subject: | note 121288 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209156@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 72.52.91.14
Probable Submitter: 79.77.11.78
----
Manual Page -- http://php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/121288
Del: integrated -- https://master.php.net/note/delete/121288/integrated
Del: useless -- https://master.php.net/note/delete/121288/useless
Del: bad code -- https://master.php.net/note/delete/121288/bad+code
Del: spam -- https://master.php.net/note/delete/121288/spam
Del: non-english -- https://master.php.net/note/delete/121288/non-english
Del: in docs -- https://master.php.net/note/delete/121288/in+docs
Del: other reasons-- https://master.php.net/note/delete/121288
Reject -- https://master.php.net/note/reject/121288
Search -- https://master.php.net/manage/user-notes.php