Re: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Garth Dahlstrom
Yup, I hear that... I'm going to use something like the following to do my pspell application... [$text][". implode('|',$matches)."]"; ?> On Fri, 20 Jul 2001 15:11:26 -0500 "Brad S. Jackson" wrote: > > > I got this to work. I wish I had found this when I wrote our pspell > code. I > wro

Re: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Alexandr Grinko
http://www.zend.com/zend/spotlight/spellchecking.php - Original Message - From: "Don Read" <[EMAIL PROTECTED]> To: "Garth Dahlstrom" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 11:41 PM Subject: RE: [PHP] split on whitesp

RE: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Don Read
On 20-Jul-2001 Garth Dahlstrom wrote: > Hi all, > > I'm trying to build a spell checker for a web form. > What has got me stumped is being able to do a split > so that whitespace and words are stored as seperate > elements of the same array. > > ideally, I'd use some form of preg_split to put:

RE: [PHP] split on whitespace, preserving whitespace...

2001-07-20 Thread Don Read
On 20-Jul-2001 Garth Dahlstrom wrote: > Hi all, > > I'm trying to build a spell checker for a web form. > What has got me stumped is being able to do a split > so that whitespace and words are stored as seperate > elements of the same array. > > ideally, I'd use some form of preg_split to put:

[PHP] split on whitespace, preserving whitespace...

2001-07-19 Thread Garth Dahlstrom
Hi all, I'm trying to build a spell checker for a web form. What has got me stumped is being able to do a split so that whitespace and words are stored as seperate elements of the same array. ideally, I'd use some form of preg_split to put: "This contanswhite space ." into an array like