Test auto-links

Posted by Zeno on Tue 13 Jun 2006 02:17 PM — 7 posts, 31,915 views.

USA #0
Whee.

http://www.gammon.com.au/downloads.htm
http://www.mushclient.com/downloads.htm

[EDIT] Not working at all?
Amended on Tue 13 Jun 2006 02:26 PM by Zeno
USA #1
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6647&page=999999

EDIT:
Looks like it works for me... maybe it has to be to a forum post?
Amended on Tue 13 Jun 2006 04:40 PM by David Haley
USA #2
http://www.mushclient.com/forum/bbshowpost.php?bbsubject_id=6647&page=999999

Looks like it only works on gammon.com.au. I think it also links script links as well. But why just those?
Australia Forum Administrator #3
OK, I see the problem. I was trying too hard to be smart. :)

I have loosened up the regexp now, and also made it match mushclient.com.

Your examples appear OK now.
USA #4
Ah okay.

More tests.

http://www.gammon.com.au/welcome.html
http://www.gammon.com.au/images/home.gif
htxp://www.gammon.com.au/welcome.html
http://gammon.com.au/images/home.gif
http://gammon.com.aux/welcome.html
Amended on Tue 13 Jun 2006 09:33 PM by Zeno
Australia Forum Administrator #5
OK, let's try this:

Go to: http://www.gammon.com.au/welcome.html.

(The trailing period is the end of a sentence).

Strange, that works. :)

Didn't expect it to.

It's because I put \b at the end of the regexp - assert word boundary.
Amended on Tue 13 Jun 2006 10:26 PM by Nick Gammon
USA #6
Hmm. Let's try this.

But if you go to http://www.gammon.com.au/welcome.html, blah blah.

Yep, looks good.