• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Regex pattern to find URLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Regex pattern to find URLs
      • From: "b.bum" <email@hidden>
References: 
 >Re: Regex pattern to find URLs (From: John Siracusa <email@hidden>)
 >Re: Regex pattern to find URLs (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: Book about creating Cocoa widgets
  • Next by Date: Re: Undo/redo for NSTextView appearing in a sheet dialog
  • Previous by thread: Re: Regex pattern to find URLs
  • Next by thread: Re: Regex pattern to find URLs
  • Index(es):
    • Date
    • Thread