thanx for the help. i got it. when i saw what happened when i put the + at
the end i found what i needed.
split('[.!?] ', $data)

this way it only breaks them up if the . or ! or ? is followed by a space.

thanx again for the help.
"Eugene Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wed, Nov 12, 2003 at 09:48:37PM -0600, erythros wrote:
> :
> : trying to use split(). i want to split a paragraph by sentence. so of
course
> : i used split('[.!?]', $data). but then i noticed i use ... or .... every
now
> : and again at the end of a sentence. i don't know how to do this
though...
>
> How about preg_split('[.!?]+', $data) ?

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

Reply via email to