title: How to extract body of asterisk-indented JavaDoc block in source-code?
body: <p>I have a block of string that looks like this.</p>
  
  <pre><code>/** 
  * Comment section for Asset Record config OnStatusChange
  *
  * Updated for HT342408  Set Assetmeters to inactive when the asset they are
  * associated with is retired. This will also cause the condition monitoring
  * point associated with the meter to be displayed as inactive.
  */
  
  
  if (ASSET.retired_date.isnull){
    ASSET.retired_date = new Date();
  }
  
  var meterset = ASSET.ASSETMETER;
  for (var x = 0; x &lt; meterset.length; x++){
  //println('*********meterset['+ x + '].assetmeterid' + meterset[x].assetmeterid);
  meterset[x].active = false; 
  //println('*********meterset['+ x + '].active' + meterset[x].active);
  }
  </code></pre>
  
  <p>What I am trying to do is extract the javadoc style text comment at the top,  Everything between the /** and the */      So far I have been unable to figure out how to pull this off in java.   My latest attempt was to use a pattern but it doesn't appear to be matching.  Can anyone provide some assistance on how to pull this off easily?</p>
  
  <pre><code>Pattern p = Pattern.compile(".*/\\*\\*.*\\*/");
  System.out.println("checking text for pattern: " + p);
  Matcher m = p.matcher(scriptContents);
  if (m.find()) {
      System.out.println("Found Match");
      System.out.println(m.group(1));
  }
  </code></pre>