title: Regex To Match Code Comment
body: <p>I have a bunch of files with comments on netbeans, I am using netbeans to replace strings that match a certain regex pattern, I'm lost on it. The comments have the following pattern below.</p>
  
  <pre><code>import static java.util.Arrays.*;
  /* 178 */     int h = 8;
  /* 179 */     int d = 8;
  /* 180 */     int j = 8;
  /* 181 */     int a = 6;
  /*     */   
  </code></pre>
  
  <p>I tried using <code>[\\\*\d+\*\/]</code> it removes the comments and the digits inside but it also removed the digit after the variable assignments, i.e it removed the <code>8</code> in <code>int h = 8;</code> and also removed the <code>*</code> in the import declaration.</p>
  
  <p>Please help, tell me what I'm doing wrong, I just need to remove the comments with both the numbers and white-space in it. Thanks. </p>
  
  <p>It uses the same regex pattern as PHP's <code>preg_replace();</code></p>