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