Re: What may be wrong with ereg...

From: Date: Mon, 18 Dec 2000 06:58:30 +0000
Subject: Re: What may be wrong with ereg...
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-30867@lists.php.net to get a copy of this message
Sylwester: > Yes, but ".." (two dots) mask any two chars, shouldn't it be: > ereg ( "\.\./|[/\]", $var ); You're so correct. My gaffe. Sorry. > And why not two backslashes (first escaping second), and why > with brackets ?? Most special characters loose their special significance when inside Bracket Expressions. > Egrep with my expression work as expected. Then, what were you asking about? You said you were getting errors with the expression you were using. I got the errors you were talking about too. > Is there any exceptions for using regular grep regexp's in > PHP ??? PHP's ereg functions use expression syntax defined in POSIX 1003.2. -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#30867) next »