Re: How to search an "@" in a NSString
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.