title: iPhone 'Whole Word' Search
body: <p>I am currently using the following algorithm to search on my iPhone app:</p>
  
  <pre><code>NSRange range = [entry.englishEntry rangeOfString:searchText options:NSCaseInsensitiveSearch];
          if(range.location != NSNotFound)
          {
              [self.filteredListContent addObject:entry];
          }
  </code></pre>
  
  <p>The problem is that when I search for a word like 'crap' I also get results for words like 'scrap' which is irrelevant.  I am unfamiliar with NSRange so what is the search algorithm for searching the whole word?</p>