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
 [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 13:01:31 2024 UTC