Re: Adding "a" in "try.jpg"! SOLVED!!

From: Date: Thu, 11 Apr 2002 05:46:35 +0000
Subject: Re: Adding "a" in "try.jpg"! SOLVED!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92506@lists.php.net to get a copy of this message
T., Here's what you want in one simple line. It works with multiple periods, spaces, whatever (I've tested it). It's best to use the PCRE functions since they are binary safe, but eregi_replace also works fine (but preg_replace would be better). preg_replace("/(.*)(\..*)/","$1a$2",$your_search_var_here) Mike...

« previous php.general (#92506) next »