[dev] Bug 616: URL-to-link in message.php3

Brent J. Nordquist bjn@horde.org
Sat, 17 Feb 2001 11:43:03 -0600 (CST)


On Sat, 17 Feb 2001, Jon Parise <jon@csh.rit.edu> wrote:

> > Err, but we have to allow it in the regex, because a '+' _is_ a properly
> > encoded space... right?
>
> Right, that's true.  For some reason, I misinterpreted what that part
> of the regular expression was actually doing.

So at the very least it sounds like I can add + to the list of characters?

But I'm still curious about why the regex has a list in the first place.
Does anyone know why it was done this way, or if there are nonspace
characters that we should be careful not to pull in?  Is it just so that a
URL in prose does the expected thing, such as:

"You might look at http://example.com/foo, but it's not a very good site."

You wouldn't want the comma in that case.  Or if it were quoted with
single or double quotes, etc.

-- 
Brent J. Nordquist <bjn@horde.org>
Yahoo!: Brent_Nordquist / AIM: BrentJNordquist / ICQ: 76158942