Re: split()
| From: | Eugene Lee | Date: | Thu, 13 Nov 2003 08:45:51 +0000 |
| Subject: | Re: split() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169449@lists.php.net to get a copy of this message | ||
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) ?