String Replace Problems
| From: | Mark Allen | Date: | Sat, 02 Sep 2000 19:45:29 +0000 |
| Subject: | String Replace Problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-14944@lists.php.net to get a copy of this message | ||
Hello,
I'm new to PHP and to regular expressions. I'm trying to do a str_replace and it's driving me nuts. I've tried a dozen combinations and none of them work. I've read the str_replace and the ereg_replace stuff in the on-line manual and I'm still at a loss for the right formatting.
Here's the string that needs replacing (it's so simple, it's embarrassing):
"75%"></center>
</td>
</tr>
I can replace the ["75%"</center>] part using $printing[1] = str_replace('"75%"></center>', '<table>'; $printing[1];
... but when I switch the string to double quotes ("...") and then try to account for those literal quotes and the line endings I screw up. Help would be appreciated, I know I'm missing something easy.
Cheers,
Mark
--
mark
mark--allen@usa.net