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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

