title: How to extract Text Before and After NSRange
body: <p>I am applying a search in a large content.Using NSRange to achieve this.</p>
  
  <pre><code>range = [textToSearch rangeOfString:searchText options:NSCaseInsensitiveSearch];
  </code></pre>
  
  <p>and then I am checking the presence of String like this:</p>
  
  <pre><code>if(range.location != NSNotFound){
     //String found
   }
  </code></pre>
  
  <p>Now I have only the Range for specified string. I want to display my search result as:</p>
  
  <p>Suppose My Content is this:</p>
  
  <blockquote>
    <p>I am a movie fanatic. When friends want to know what picture won the Oscar in 1980 or who played the police chief in Jaws, they ask me. My friends, though, have stopped asking me if I want to go out to the movies.</p>
  </blockquote>
  
  <p>Now I have made a search for "Stopped"</p>
  
  <p>Now I want to display my search as:</p>
  
  <p>Result:</p>
  
  <p>My friends, though, have <strong>stopped</strong> asking me if I want to </p>
  
  <p>I want some word before and after searched result. I don't know how to acheive this.</p>