php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #4218 preg_quote doesn't quote /
Submitted: 2000-04-21 12:58 UTC Modified: 2000-04-21 13:01 UTC
From: zagrodnick at promp dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Release Candidate 1 OS: Linux
Private report: No CVE-ID: None
 [2000-04-21 12:58 UTC] zagrodnick at promp dot de
As documented preg_quote does not quote "/".
Is it intendet not to do so or did you just forgot it? ;-)

IMO / is a part of the regular expression syntax?!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-21 13:01 UTC] andrei at cvs dot php dot net
No, / is not part of regular expressions syntax so it's not supposed to be quoted.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 22:00:01 2026 UTC