Re: Regex Question

From: Date: Thu, 30 Nov 2000 16:02:48 +0000
Subject: Re: Regex Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28063@lists.php.net to get a copy of this message
>>>>> "JEH" == "John E Haag" <jhaag@all4one.com> writes: > I feel very stupid, since I can't figure out something THIS simple, > but can someone tell me how to replace: > /go/###/ > in a string using a Regex function?? > The number signs indicate numbers, of which there might be One, Two > or Three of. (ie. 5, 25, 567) $newstring = ereg_replace('/go/[0-9]{1,3}/', 'replacement', $oldstring); -- Robin Vickery............................................... Planet-Three, 3A West Point, Warple Way, London, W3 0RG, UK Email: robin@planet-three.net Phone: +44 (0)870 729 5444

« previous php.general (#28063) next »