title: Getting substring from a string that contains special char
body: <p>I have a string</p>
  
  <pre><code>String exceptionMessage = "Duplicate entry 'Asd12345' for key 'UK_sb8bbouer5wak8vyiiy4pf2bx'"
  </code></pre>
  
  <p>I would like to extract <code>'Asd12345'</code> from the string. Can someone help with java string? </p>
  
  <p>Expected output:</p>
  
  <pre><code>Asd12345 
  </code></pre>