title: How to find the nth character or digit in a string using REGEX in Perl
body: <p>I would like to find nth occurence of a digit or character using regex in perl.</p>
  
  <p>For example: If the string is:</p>
  
  <pre><code>$string = 'abdg2jj4jdh5jfj6'
  </code></pre>
  
  <p>i need to match the digit 5 which is the 3rd digit.</p>
  
  <p>How can i do it with regex.</p>