RE: [PHP] Need regular match help - possibly
| From: | Mike | Date: | Thu, 25 Jul 2002 23:44:55 +0000 |
| Subject: | RE: [PHP] Need regular match help - possibly | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109628@lists.php.net to get a copy of this message | ||
Hi
> for the first case - using "\n", try :
> ereg_replace('\n+', '\n\n\n', $str)
This is right, apart from the fact that \n characters will no be parsed
with single quotes. Try this...
<?php
ereg_replace("\n+", "\n\n\n", $str);
?>
Sorry, just a minor thing.
Mike
--
MGS2 Online
http://www.mgs2online.f2s.com