title: Searching for words in textarea
body: <p>I am building a custom a <code>find and replace</code> in java. I browse a text file and load the contents in a textarea. Now I have a textBox, where I input a text that needs to be searched.</p>
  
  <p>What is the best way to search the text. I know a way using <code>string.indexOf()</code>, but I also need highlighting. So please help me out.</p>