title: javascript Regex pattern validation
body: <p>I need to create a regex pattern which starts with an <code>i</code> and followed with 6 numbers. for example: i123456, i098765.</p>
  
  <p>I have followed this <a href="https://stackoverflow.com/a/16275847/1691423">SO</a>, and created this regex: <code>^\[i]{1}[0-9]{6}$</code> but in <a href="http://www.regular-expressions.info/javascriptexample.html" rel="nofollow noreferrer">this</a> validation web site I got an false for the examples above.</p>
  
  <p>How do I achieve this?</p>