#36442 [Opn]: preg_match's examples shouldn't always use / as delimiter

From: Date: Sat, 18 Feb 2006 15:05:51 +0000
Subject: #36442 [Opn]: preg_match's examples shouldn't always use / as delimiter
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371976@lists.php.net to get a copy of this message
ID: 36442 Updated by: arpad@php.net Reported By: colder@php.net Status: Open Bug Type: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant New Comment: I'm not sure of the merit of using a different delimiter there since it demonstrates that if the delimiter does exist, it should be escaped. However if it is changed, I think '|' is a bad choice because it's part of PCRE syntax. Previous Comments: ------------------------------------------------------------------------ [2006-02-18 14:48:34] colder@php.net Description: ------------ In the manual page of preg_match, "/" is always used as delimiter, even if there are "/"s in the regex. It could influences bad habbits on readers. There are also too many escaped chars. Here is the patch containing the proposed changes: http://www.colder.ch/patches/preg-match.patch ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36442&edit=1

« previous php.doc (#969371976) next »