[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.

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

2002-01-30 Thread Matthew Walker
$statement=preg_replace(/ /,br,$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() 'space' the final

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

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

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 function