Re: [PHP] RegExp (preg) - how to split long string to length,wit

2004-04-16 Thread moondog
nice! (things are often under my nose, still I can't see them...I was using explode and loops...) thx moondog Mike Ford wrote: On 16 April 2004 11:47, moondog wrote: Hi, I am a RegExp newbie, and need help with this: i have a long string (500 / 600 chars), and need to split it in lines. Each l

RE: [PHP] RegExp (preg) - how to split long string to length,wit hout cutting words

2004-04-16 Thread Ford, Mike [LSS]
On 16 April 2004 11:47, moondog wrote: > Hi, > I am a RegExp newbie, and need help with this: > i have a long string (500 / 600 chars), and need to split it in lines. > > Each line has a maximum length (20), and words in the line > shouldn't be > cut, instead the line should end at the end of t