> From: Analysis & Solutions <[EMAIL PROTECTED]> > > How's this? > > $summary = preg_replace('/^(.*)(\r?\n){2,}.*/', '\\1', $summary); > > --Dan > That's great -- works, and I generally see how it works. Thanks.
Also, can anyone recommend a good online reference, book, or tutorial for regular expressions? -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php