• 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: Bertrand Mansion <email@hidden>
  • Date: Sun, 7 Nov 2004 09:04:40 +0100

Hi,

Here is the pattern I use on cocoabuilder.com to transform urls in mails into
links:

/(http|ftp|https):\/\/([^\s"<]*[\w+#?\/&=;])/

You can see the result of your example urls there:
<http://www.cocoabuilder.com/archive/message/cocoa/2004/11/6/120934>

HTH

Bertrand Mansion
Mamasam
http://www.cocoabuilder.com
 _______________________________________________
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

  • Prev by Date: Re: Help Viewer Loading Blank Page
  • Next by Date: Re: Resizing subviews within NSSplitView programmatically
  • Previous by thread: Re: Regex pattern to find URLs
  • Next by thread: QuickTime Callback
  • Index(es):
    • Date
    • Thread