RE: [PHP] multi line string replace
| From: | Peter | Date: | Thu, 23 May 2002 01:54:09 +0000 |
| Subject: | RE: [PHP] multi line string replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98852@lists.php.net to get a copy of this message | ||
can we have a looky at ur actual code for this? might help us to let you
know where exactly the problem is with ur code...
-----Original Message-----
From: Aaron [mailto:aarmel@netagi.com]
Sent: Thursday, 23 May 2002 7:41 PM
To: php-general@lists.php.net
Subject: [PHP] multi line string replace
cant seem to get it to work
say this is the string
" <tr>
<td colspan="3" valign="top"
class="footerline">"
replace with "hello".
problem is, i cant even get other functions to get the position of the
string.
No problems finding or matching replacing
" <tr>"
or
" <td colspan="3" valign="top"
class="footerline">"
but together no luck. strstr, stristr etc str_replace.
also tried
" <tr>\n <td colspan="3" valign="top"
class="footerline">"
also tried doing a nl2br on the compare string and actual string first
to see if that'd work. replaced the exact same bits.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php