Thread: Automatic URLs
View Single Post
  #10 (permalink)  
Old June 18th, 2003, 10:44 AM
bluckcuck bluckcuck is offline
Friend of Wrox
 
Join Date: May 2003
Posts: 202
Thanks: 0
Thanked 1 Time in 1 Post
Default

Unfortunately, the code appears to be quite complicated. The automatic URL parsing handles much more the just "http://". It handles email addresses, ftp URL's, https, and special cases of "www." This is just the automatic (implicit) detection (ie. not inside of the URL tags). Different code handle the explicit URL's (inside of tags).

You're welcome to look at the code to see if it can be improved. The code is mostly ASP but does include some javascript regular expressions. You can download the code for the current version of Snitz at http://forum.snitz.com/. The code that handles the URL detection/conversion is in inc_func_common.asp

Bruce Luckcuck
Director, Applications & Support Services
Wiley Publishing, Inc.