php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8925 pattern ~ can't detected
Submitted: 2001-01-25 23:02 UTC Modified: 2001-03-16 16:36 UTC
From: linkz at hanmail dot net Assigned:
Status: Closed Package: *Regular Expressions
PHP Version: 4.0.4pl1 OS: linux
Private report: No CVE-ID: None
 [2001-01-25 23:02 UTC] linkz at hanmail dot net
php 4.0.4pl1

<?
$aa = "abc ?? cde";
if (ereg ("~",$aa)) {
	echo "found!!";
}
else {
	echo "not found";
}
?>

this script don't work properly.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-26 11:35 UTC] cynic@php.net
seems like you're saying that ereg() won't find "~" (tilde) in a string. however, at least the code you provided contains NO ~. is this the actual code? or just a typo in the report?
 [2001-03-16 16:36 UTC] sniper@php.net
Works for me. No feedback.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC