title: Parse string using pattern and Matcher
body: <p>I have string as </p>
  
  <pre><code> str = "-------------Date 26032016
  Hi Team, I am alone.
  -------------Time 206066";
  </code></pre>
  
  <p>I need </p>
  
  <p><strong>Hi team, I am alone.</strong></p>
  
  <p>I am using following code but </p>
  
  <pre><code>Pattern p = Pattern.compile("(-*?) H");
          Matcher m = p.matcher(str);
          while (m.find()) {
              part = m.group(1);
          }
  Pattern p1 = Pattern.compile("(.*?) -");
          Matcher m1 = p1.matcher(part);
          while (m1.find()) {
              part1 = m1.group(1);
          }
  </code></pre>
  
  <p>But not working.</p>
  
  <p>I am trying to find any string between Date ( for eg.  -------------Date 26032016) and Time (for eg.  -------------Time 206066).</p>