I'm trying to do something to the effect of this for a preg_replace statement:

$string = "Hello\n\n\n\n\n\n\nHow are you?\n\n\n\n\n\n\n\nHi";
$string = preg_replace("/\n\n/", "/\n/", $string);


But, it appears the 'replace' portion of the function doesn't allow for 
regex.  How can I do this so that I CAN have the second statement be regex?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to