Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Jason Wong
On Saturday 28 February 2004 18:49, Karl Timmermann wrote: Please do not top post. > Like if the sentence is split. 1) define your idea of a sentence 2) construct a suitable regex for use with preg_replace() If you don't know how to do (2) then at least do (1) and then someone might be able to

Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Karl Timmermann
Like if the sentence is split. Thanks On Feb 28, 2004, at 1:34 AM, Jason Wong wrote: On Saturday 28 February 2004 16:15, Karl Timmermann wrote: Opps, I failed to mention there can be more paragraphs with legit new lines, like: Hello, my name is Karl. Hello, my name is Dave. This is some more exa

Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Jason Wong
On Saturday 28 February 2004 16:15, Karl Timmermann wrote: > Opps, I failed to mention there can be more paragraphs with legit new > lines, like: > > Hello, my name is Karl. > Hello, my name > is Dave. > This is some more example text. > > Yes, this is yet some more. So what is your criteria for "

Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Karl Timmermann
Opps, I failed to mention there can be more paragraphs with legit new lines, like: Hello, my name is Karl. Hello, my name is Dave. This is some more example text. Yes, this is yet some more. On Feb 27, 2004, at 11:56 PM, Five wrote: You mean something like this? $message = ereg_replace( "\n"

[PHP] Re: Text cleaning?

2004-02-27 Thread Five
You mean something like this? $message = ereg_replace( "\n", " ", $message); It seems to replace all new line instances with a blank space. "Karl Timmermann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone have some PHP code to remove incorrect carriage returns? > > E