title: Regex to find String which starts with ABC and not ends with XYZ
body: <p>Please help me here</p>
  
  <p>For below example how do I write the regex to find string which starts with ABC and not ends with XYZ</p>
  
  <p>Example: </p>
  
  <pre><code>ABCfdsAFfadsXYZ ABCffasdffdaAAA FASfdaaffasaAFA
  </code></pre>
  
  <p>Out of these, only the second one should match.</p>