Re: regular expressions php/perl/actionscript

From: Date: Thu, 22 Apr 2004 19:42:16 +0000
Subject: Re: regular expressions php/perl/actionscript
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-184287@lists.php.net to get a copy of this message
From: "Gabino Travassos" <mote@moteinteractive.com> > I'm wondering if Regular Expressions are the same in Perl and PHP (and > possibly Actionscript)? They look the same and smell the same, but if I see > a book in a store for Perl Regular Expressions that's $10 cheaper than the > PHP one (is there one?), then is it the same thing? The regular expressions used in the preg_* functions "closely resembles Perl". The basic syntax is the same. The regular expressions used in the ereg_* functions are POSIX-Extended. http://us2.php.net/manual/en/ref.pcre.php (Perl-compatible) http://us2.php.net/manual/en/ref.regex.php (POSIX Extended) ---John Holmes...

« previous php.general (#184287) next »