• 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
How to search an "@" in a NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to search an "@" in a NSString


  • Subject: How to search an "@" in a NSString
  • From: Thomas Schmitt <email@hidden>
  • Date: Fri, 16 Jul 2004 12:11:03 +0200

Hello,

I have a little Problem with NSString and its rangeOfString method.

I need to filter some NSStrings which contains E_Mails Addresses. These
strings contain "@" symbols.
If I check these Strings using the rangeOfString method like this

if ([tempString rangeOfString:searchString
options:searchMethod].location != NSNotFound){

... do something ....

}

and the searchString contains also an @-Symbol, the rangeOfString
method always returns NSNotFound.

Has someone any idea want went wrong?

Thanks
thomas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: How to search an "@" in a NSString
      • From: Kevin Ballard <email@hidden>
  • Prev by Date: toggling boarderless panels?
  • Next by Date: Re: toggling boarderless panels?
  • Previous by thread: Re: toggling boarderless panels?
  • Next by thread: Re: How to search an "@" in a NSString
  • Index(es):
    • Date
    • Thread