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

Detect phone number in NSString


  • Subject: Detect phone number in NSString
  • From: Brad Peterson <email@hidden>
  • Date: Wed, 16 Apr 2008 01:47:24 -0700 (PDT)

Hi all,

Like many cell phones are doing these days, I want to
be able to detect phone numbers in NSStrings and
highlight them in some way for the user.

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.

I've searched the archives, but didn't find anything
on this list. I thought about using NSString's isLike:
method, but that doesn't necessarily help me locate
the position of the phone number, IIRC; merely to know
that there might be one.

Any thoughts would be greatly appreciated.

Thank you!


      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________

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

  • Follow-Ups:
    • Re: Detect phone number in NSString
      • From: Uli Kusterer <email@hidden>
    • Re: Detect phone number in NSString
      • From: "Dave DeLong" <email@hidden>
  • Prev by Date: Re: Getting feedback from application
  • Next by Date: NSValue value:withObjCType:
  • Previous by thread: Re: [ANN] ANSystemSoundWrapper - Cocoa wrapper for changing system volume
  • Next by thread: Re: Detect phone number in NSString
  • Index(es):
    • Date
    • Thread