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