title: Text pattern matching in Python 3
body: <p>I have a scenario where I need to compare 2 texts and the based upon their pattern matching response should be binary ( True/False)</p>
  
  <p>Examples:</p>
  
  <p>when length is same</p>
  
  <pre><code>a = 231220
  b = 231222
  
  result = True
  </code></pre>
  
  <p>when pattern is same</p>
  
  <pre><code>a = `23/12/2018`
  b = `01/03/2020'
  
  result = True
  </code></pre>
  
  <p>when the pattern doesn't match</p>
  
  <pre><code>a = 0.90833333333
  b = 0.3833333333333333
  
  result = False
  </code></pre>
  
  <p>Is there a library in Python 3 to handle this kind of pattern matching ?
  Or how can I handle this via python code</p>