On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> On 1/25/06, Ahmed Saad <[EMAIL PROTECTED]> wrote:
> > On 1/23/06, Richard K Miller <[EMAIL PROTECTED]> wrote:
> >
> > > function link_the_links($s) {
> > >         return preg_replace('@(http://[^\s]+)@sm', '<a href="$1">$1</a>', 
> > > $s);
> > > }

try "looking ahead" in the first regex
http://www.regular-expressions.info/lookaround.html


-ahmed

Reply via email to