View Single Post
  #5 (permalink)  
Old November 6th, 2003, 03:07 PM
nikolai nikolai is offline
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your modified version of the pattern works for recognizing telnet and ftp protocol declarations. The reason the trailing slash doesn't get recognized is because the transition from a slash to whitespace (or the end of the line) does NOT constitute a word boundary. I thought that it would...

Remove the last \b in the pattern and the slashes sould be recognized.

When matching hostnames, most people find it sufficient to just enforce the top-level domain to either be 2 or 3 characters. All country domains (ws, tv, uk, en, jp, etc...) and US domain types (net, com, org, edu, gov, mil) will be matched.


Take care,

Nik
http://www.bigaction.org/
Reply With Quote