|
|
“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.
There are no trackbacks.
|
TruerWords
is Seth Dillingham's personal web site. Truer words were never spoken. |