Re: preg_replace - I don't have a clue

From: Date: Fri, 13 Jan 2006 22:15:39 +0000
Subject: Re: preg_replace - I don't have a clue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228593@lists.php.net to get a copy of this message
On 1/12/06, Frank Bax <fbax@sympatico.ca> wrote: > > reg_replace( ' (\d+\$)', '+$0', $prop ); /* results in > dollar-alpha-space-space-plus-digits-dollar */ > $Fencing +11$Lumber +17$Weight: 317 Stones$Energy Resist 2%$ Try: preg_replace( '/ (\d+\$)/', '+$1', $prop ); -- Anthony Best

« previous php.general (#228593) next »