• 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: Detect phone number in NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect phone number in NSString


  • Subject: Re: Detect phone number in NSString
  • From: Graham Davison <email@hidden>
  • Date: Wed, 16 Apr 2008 12:24:16 -0500

On 16 Apr 2008, at 11:53, Uli Kusterer wrote:
Am 16.04.2008 um 10:47 schrieb Brad Peterson:
So, if I had some text, say : "Hi Tom, Please call
Cheryl at 444-555-6767 and she can get you that
info..." I want to be able to "know" that 444-555-6767
is a phone number and should be marked as such.


Apple has this in Mail. No idea whether there's a public API, but in ye olde days this technology was called "Apple Data Detectors", maybe that'll help you google something up? Otherwise, see what Apple calls it in the Mail.app docs, maybe that term will bring up a related API.

It's now simply called Data Detectors. There's no public API, but there is a Private Framework which defines it. The matching patterns are all defined in data files contained in the framework.


Unfortunately, the list of actions for each data type is defined within the framework...

Graham
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Detect phone number in NSString (From: Brad Peterson <email@hidden>)
 >Re: Detect phone number in NSString (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: binary search trees & binning
  • Next by Date: Re: binary search trees & binning
  • Previous by thread: Re: Detect phone number in NSString
  • Next by thread: Re: Detect phone number in NSString
  • Index(es):
    • Date
    • Thread