Re: which regexp require preg_grep() and which can be used with ereg()?

From: Date: Sat, 06 Oct 2001 09:50:30 +0000
Subject: Re: which regexp require preg_grep() and which can be used with ereg()?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70212@lists.php.net to get a copy of this message
On Saturday 06 October 2001 00:17, John A. Grant wrote: > In Perl I used "/\S/" to check for blank lines read from a file. > Now I'm learning PHP. How do I know what is a 'standard' > regexp that ereg() can handle and how do I know what is > Perl-specific syntax so that I must use preg_grep() instead? If you're familiar with Perl syntax simply use always the preg functions. They're even a bit faster than ereg* :) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) I saw God --------- and she was black.

« previous php.general (#70212) next »