title: Regular Expression for IFSC Code of Indian Bank
body: <p>The IFSC code is consists of first 4 letters then '0' then 6 digits. The Regex is below
      [A-Z|a-z]{4}[0][\d]{6}$
  But i am using OCR to extract text so i am cleaning the code </p>
  
  <pre><code>        ifsc_code = ifsc_code.replace(",","")
          ifsc_code = ifsc_code.replace("X","0")
          ifsc_code = ifsc_code.replace("o","0")
          ifsc_code = ifsc_code.replace("O","0")
          ifsc_code = ifsc_code.replace("(","")
          ifsc_code = ifsc_code.replace(")","")
  </code></pre>
  
  <p>so what it does it converts "ORBC0101346" to "0RBC0101346" and my regex fails.
  what i was thinking to do is to split this ifsc code into 2 parts firsts 4 characters and do the cleaning and then the second part consisting of numbers only and then join them together at the end after cleaning.</p>