PREG_REPLACE - Help!
Posted: Sat Sep 05, 2009 3:40 am
I need a little help coming up with the right preg_replace for a multilined pattern. This is the pattern I am searching for exactly:
I have what I want to replace it with in the variable: $extra
and the html pages needed edited is stored in: $content
So what I need is something like: $content = preg_replace($pattern,$extra,$content);
Where $pattern is the $pattern I need that will find the multilined code above.
Code: Select all
</center>
</td>
</tr>
</table>
</td>
</tr>and the html pages needed edited is stored in: $content
So what I need is something like: $content = preg_replace($pattern,$extra,$content);
Where $pattern is the $pattern I need that will find the multilined code above.