Re: [PHP] preg_replace() 'space' the final frontier

2002-01-30 Thread Jason Wong
On Thursday 31 January 2002 04:00, Matthew Walker wrote: > What I am trying to do is have a line of text break at a "space" after > reading 19 words. Having read the various methods of finding and > replacing one character with another, I settled on preg_replace as my > best choice, but this fun

RE: [PHP] preg_replace() 'space' the final frontier

2002-01-30 Thread Matthew Walker
PM To: hugh danaher; Php-General Subject: RE: [PHP] preg_replace() 'space' the final frontier $statement=preg_replace("/ /","",$original,19); Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: hugh danaher [mailto:[EMAIL PR

RE: [PHP] preg_replace() 'space' the final frontier

2002-01-30 Thread Matthew Walker
$statement=preg_replace("/ /","",$original,19); Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 12:35 PM To: Php-General Subject: [PHP] preg_replace

[PHP] preg_replace() 'space' the final frontier

2002-01-30 Thread hugh danaher
What I am trying to do is have a line of text break at a "space" after reading 19 words. Having read the various methods of finding and replacing one character with another, I settled on preg_replace as my best choice, but this function doesn't accept a space in the regular expression slot.