title: Filter out second set of digits with regex
body: <p>In my HTML markup, there will be a series of elements with the following naming scheme:</p>
  
  <pre><code>name="[].timeEntries[].Time"
  </code></pre>
  
  <p>Between both sets of brackets, there will be numbers with at least one possibly two digits. I need to filter out the second set of digits.</p>
  
  <p>Disclaimer: This is my first time getting to know regex.</p>
  
  <p>This is my pattern so far:</p>
  
  <pre><code>var re = /\[\d{1,2}\].timeEntries\[(\d{1,2})\]\.Time/;
  </code></pre>
  
  <ol>
  <li>I am not sure if I should use the * or + character to indicate two possible digits.</li>
  <li>Is replace() the right method for this?</li>
  <li>Do I need to escape the period '.' ?</li>
  <li>Any other tips you can offer are appreciated.</li>
  </ol>
  
  <p>For example, if I come across an element with </p>
  
  <pre><code>name="[10].timeEntries[9].Time"
  </code></pre>
  
  <p>I would like to put just the 9 into a variable.</p>