title: How to find a pattern in a string
body: <p>I am stuck while finding the pattern position in a string. The string is of 6 characters and consist of <strong>only uppercase letter(A-Z)</strong> or <strong>digits (0-9)</strong>. </p>
  
  <pre><code>check_string = 'I have a string 09A4N5'
  </code></pre>
  
  <p>I have to find the position of <strong>'09A4N5'</strong> which could be any other string in a similar format. I tried with the regular expression and was able to find the get the below mentioned solution which gives the position of the word <em>'string'</em>. </p>
  
  <pre><code>re.search('\w+\w+\w+\w+\w+\w',check_string).start()
  9
  </code></pre>