Search text in another text
<p>I use below code for check that searchText exist in name or not but this code is case sensitive means if searchText:"Home" and name :"home and " the result is that searchText doesn't exist in name </p>

<p>how can i remove case sensitive?</p>

<pre><code>NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init];
NSRange r = [name rangeOfString:searchText]; 
if(r.location != NSNotFound)
     //searchText exist in name
</code></pre>
