Re: trying to match the front and end...

From: Date: Fri, 08 Aug 2003 16:49:22 +0000
Subject: Re: trying to match the front and end...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158893@lists.php.net to get a copy of this message
Dan Joseph wrote:
Sometimes there won't be anything to replace at the front, and sometimes nothing at the end. So it'd still need to do the front and/or end wether or not they both exist. Is there a way to tweak these to do that?
Question: Where is this number coming from? Couldn't you just use a substr() based upon it's length and not deal with a regular expression? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com

« previous php.general (#158893) next »