Detect phone number in NSString
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