note 65633 added to reference.pcre.pattern.syntax
| From: | bobbykjack at yahoo dot co dot uk | Date: | Thu, 04 May 2006 19:53:51 +0000 |
| Subject: | note 65633 added to reference.pcre.pattern.syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-110566@lists.php.net to get a copy of this message | ||
If anyone else out there is having a problem with the 'general repetition quantifier',
please take heed of the note ", separated by a comma." (which should be rewritten
",separated ..." !) Specifically,
<?php
$pattern = '/z{2, 4}/';
?>
is NEVER what you want. Ensure there is no comma between the min and max values:
<?php
$pattern = '/z{2,4}/';
?>
----
Server IP: 84.18.202.180
Probable Submitter: 84.92.118.11
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/reference.pcre.pattern.syntax.php
Edit -- http://master.php.net/note/edit/65633
Del: integrated -- http://master.php.net/note/delete/65633/integrated
Del: useless -- http://master.php.net/note/delete/65633/useless
Del: bad code -- http://master.php.net/note/delete/65633/bad+code
Del: spam -- http://master.php.net/note/delete/65633/spam
Del: non-english -- http://master.php.net/note/delete/65633/non-english
Del: in docs -- http://master.php.net/note/delete/65633/in+docs
Del: other reasons-- http://master.php.net/note/delete/65633
Reject -- http://master.php.net/note/reject/65633
Search -- http://master.php.net/manage/user-notes.php