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

Re: How to search an "@" in a NSString


  • Subject: Re: How to search an "@" in a NSString
  • From: Kevin Ballard <email@hidden>
  • Date: Sat, 17 Jul 2004 10:00:15 -0400

Uhh, what's your tempString, searchString, and searchMethod vars set to?

On Jul 16, 2004, at 6:11 AM, Thomas Schmitt wrote:

> 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?

--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


References: 
 >How to search an "@" in a NSString (From: Thomas Schmitt <email@hidden>)

  • Prev by Date: Re: How to make an application non-executable?
  • Next by Date: Re: Sketch app with HTML export.
  • Previous by thread: How to search an "@" in a NSString
  • Next by thread: programmatically accessing a web form?
  • Index(es):
    • Date
    • Thread