|  | Posted by Rory Browne on 06/16/72 11:20 
Something along the lines of 
 preg_replace("#(http://|www\.)\S+#", "<a....></a>", $line)
 
 I´d have put the proper code in, except that I´m still getting used to
 a spanish keyboard layout - and don´t know the layout too well.
 
 Rory
 
 On 7/2/05, timothy johnson <mr2bigjohnson@gmail.com> wrote:
 > I am still writing a script for my friend he asked me about being able
 > to scan strings and make any strings that have http links in them,
 > able to be an anchor in a broswer, as I am sure I am not the first to
 > do this, any one have any ideas??? I am on php.net looking thru the
 > functions see lots of ides but nothing that seems to want to work.
 >
 > --
 > PHP General Mailing List (http://www.php.net/)
 > To unsubscribe, visit: http://www.php.net/unsub.php
 >
 >
  Navigation: [Reply to this message] |