title: How to create JavaScript regex which test if a line start with '//'
body: <p>How to create JavaScript regex which tests if a line starting with '//'</p>
  <p>I try using</p>
  <pre><code>var isCommentReget = /^\/\// 
  </code></pre>
  <p>to test for line starts with //</p>
  <p>And how can I test it so that it can return turn if a line starts with tab, space, and then &quot;//'?</p>
  <p>But isCommentReget always returns true.  Please tell me what am I missing?</p>