RE: [PHP] regular expressions php/perl/actionscript
| From: | Michal Migurski | Date: | Thu, 22 Apr 2004 20:09:48 +0000 |
| Subject: | RE: [PHP] regular expressions php/perl/actionscript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184292@lists.php.net to get a copy of this message | ||
> > 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?
>
> this page will tell you what php supports:
>
> http://us3.php.net/ereg
Alternatively, try this:
http://www.php.net/manual/en/ref.pcre.php
"PCRE" == "Perl-compatible Regular Expressions".
The ereg functions use a slightly different syntax.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html