title: Java RegEx getting tail after matching as String
body: <p>I was wondering if there is a way to get the tail after matching in <code>java.util.regex.Matcher</code> as String not appending it to a StringBuffer, which is what Matcher.<code>appendTail(StringBuffer)</code> does. I know that I can just create a StringBuffer and append that one String to it and convert it to a String but I was wondering if there is a more direct way.  </p>
  
  <pre><code>StringBuffer tailBfr = new StringBuffer();              
  mtchr.appendTail(tailBfr);
  String tail = tailBfr.toString();
  </code></pre>
  
  <p>Since there is no String getTail() method.</p>
  
  <p>I tried getting the group count and then iterating through groups to see if it may be stored in one of them but it wasn't.</p>
  
  <p>Thanks</p>