Re: regular expressions php/perl/actionscript
| From: | Curt Zirzow | Date: | Thu, 22 Apr 2004 21:13:46 +0000 |
| Subject: | Re: regular expressions php/perl/actionscript | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184299@lists.php.net to get a copy of this message | ||
* Thus wrote Gabino Travassos (mote@moteinteractive.com):
> Hello
>
> 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?
PHP's PCRE (Perl Compatible Regular Expressions).
http://php.net/pcre
Some of the documentation there can get a little bit like reading a
complex regular expression. A good book might help:
http://www.oreilly.com/catalog/regex2/index.html
Curt
--
"I used to think I was indecisive, but now I'm not so sure."