TruerWords Logo
Google
 
Web www.truerwords.net

Search TruerWords

Welcome
Sign Up  Log On

“Updated: URL Activation with Regular Expressions”

From: Seth Dillingham In Response To: 2539  Finding and Activating URLs with Regular Expressions (Regex)
Date Posted: Friday, April 18, 2003 7:24:11 PM Replies: 0
   
Enclosures: None.

Last week, a fairly well known, small software company agreed to use the regular expressions for URL activation that we use in Conversant. This morning they sent me a bug report, as they'd found a fairly common case that wasn't caught by the expressions. Specifically, it was skipping URL's with anchors (the part after the #) beginning with numbers.

I'd actually put that "bug" in there intentionally. Named links (anchors) in HTML are supposed to begin with letters (a-z or A-Z), never numbers... but the most common browser doesn't enforce that (of course), so lots of sites used numbers to name their anchors. Since it's so common, I fixed it. The expressions for finding and activating URLs in plain text have been updated to reflect this common (if incorrect) practice.


Discussion Thread:

There are no replies.

Trackbacks:

There are no trackbacks.


Until August 31
My Amazon sales
benefit the PMC

Homepage Links

Apr 1 - Aug 31
Ad revenue
benefits the PMC


TruerWords
is Seth Dillingham's
personal web site.
Truer words were never spoken.