title: Regular Expression find method
body: <p>This is my code to find <code>"ab"</code> pattern in given string.</p>
  
  <pre><code>import java.util.regex.*;
  public class RegExp
  {
      public static void main(String[] args)
      {
          Pattern p = Pattern.compile("ab");
          Matcher m = p.matcher("ababbaba");
          while(m.find())
          {
              System.out.println(m.start());
          }
      }
  }
  </code></pre>
  
  <p>But i am not able to understand internal working of <code>find()</code> and <code>start()</code>.</p>