Re: Regex pattern to find URLs
Re: Regex pattern to find URLs
- Subject: Re: Regex pattern to find URLs
- From: John Stiles <email@hidden>
- Date: Sat, 6 Nov 2004 08:05:00 -0800
I don't think it's reasonable to expect it to handle that. That's just
plain ambiguous, whether you're a person or a computer.
Can it handle (http://www.foo.com/foo) properly, with whitespace around
the parens?
On Nov 5, 2004, at 11:59 PM, Kevin Ballard wrote:
When I throw at it
(http://www.foo.com/foo)test.
it matches
http://www.foo.com/foo)test.
as the URL, which isn't correct. Like I said, a single regex *cannot*
deal with this situation.
On Nov 5, 2004, at 11:05 PM, John Siracusa wrote:
Now for the supposedly "correct" one, courtesy of Abagail (well-known
perl
community member):
<snip>
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden