title: Python Anchors to validate specific characters in beginning and in the end
body: <p>My example text is </p>
  
  <pre><code>A 12324567#JAIEKLLIMdata B
  </code></pre>
  
  <p>and trying to extract string which begins with A and ends with B</p>
  
  <p>my regex is </p>
  
  <pre><code>"\AA [A-Za-z0-9]\ZB"
  </code></pre>
  
  <p>or </p>
  
  <pre><code>"^A[A-Za-z0-9]B$"
  </code></pre>
  
  <p>I get a no match found when trying run this regex. Any suggestions where i am going wrong?</p>