php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5472 back reference in pcre not working
Submitted: 2000-07-08 23:59 UTC Modified: 2000-07-09 00:01 UTC
From: sql42 at hotmail dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: Linux 2.2.14-5.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sql42 at hotmail dot com
New email:
PHP Version: OS:

 

 [2000-07-08 23:59 UTC] sql42 at hotmail dot com
if (preg_match("/([^aeiouylsz])\1$/", "hopp")) { echo "match<br>"; }

Does not match. This regex will match in Perl.

 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-09 00:01 UTC] andrei at cvs dot php dot net
You have to use two backslashes, \\1.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 06:01:31 2024 UTC