note 92074 added to function.preg-replace
| From: | neamar at neamar dot fr | Date: | Tue, 07 Jul 2009 20:08:05 +0000 |
| Subject: | note 92074 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158034@lists.php.net to get a copy of this message | ||
I improved the regexp expression for brace matching.
Basically, if you were to ask for in-braces content, you can't control you'll close with
the good brace, e.g. if your regexp is {(.+)} and your text {Content {another content} yet more
content}, preg will stop at the first closing brace even though you want to "match
braces".
My experimenations are a bit long, you'll find them here : http://neamar.fr/Res/RegexpWithBraces/
----
Server IP: 89.31.146.176
Probable Submitter: 86.76.215.52
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/92074
Del: integrated -- https://master.php.net/note/delete/92074/integrated
Del: useless -- https://master.php.net/note/delete/92074/useless
Del: bad code -- https://master.php.net/note/delete/92074/bad+code
Del: spam -- https://master.php.net/note/delete/92074/spam
Del: non-english -- https://master.php.net/note/delete/92074/non-english
Del: in docs -- https://master.php.net/note/delete/92074/in+docs
Del: other reasons-- https://master.php.net/note/delete/92074
Reject -- https://master.php.net/note/reject/92074
Search -- https://master.php.net/manage/user-notes.php