regular expressions php/perl/actionscript

From: Date: Thu, 22 Apr 2004 19:24:12 +0000
Subject: regular expressions php/perl/actionscript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184275@lists.php.net to get a copy of this message
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? While we're on this topic, I'm looking to find an attribute in an XML and replace it with a string variable I get from a form. I can use: $bgClrOld = preg_match('/backColour/',$s); // 1 to find the attribute, but how do I find and replace backColour="a3b4c5" with backColour=$bgClrNew ? TIA Gabino

« previous php.general (#184275) next »