Re: [PHP-DB] help with preg_replace for http://

2002-03-29 Thread Bill Morrow
On Fri, Mar 29, 2002 at 11:46:24AM -0800, Kevin Won wrote: > I'm writing a knowledgebase (basically a content management system) application >where people are adding text via web forms then viewing this data on the web. >standard bread-and-butter kind of stuff. > > of course people want to put

RE: [PHP-DB] help with preg_replace for http://

2002-03-29 Thread Jonathan Hilgeman
Just do a while loop: while(preg_match("/string to find unconverted links/", $TextBody)) { // preg_replace here } But make sure you're not doing this on the fly every time the page is viewed. That will take up an enormous amount of resources with lots of visitors. Just convert it and