title: java regular expression to extract uuid within square brackets
body: <p>I have string inside brackets like following format:</p>
  
  <pre><code>[space string space]
  </code></pre>
  
  <p>I want to extract the string if the string is in UUID format.</p>
  
  <p>example : <code>[ d6a413f4-059c-11e8-ba89-0ed5f89f718b ]</code></p>
  
  <p>With java regular expression how can I get <code>d6a413f4-059c-11e8-ba89-0ed5f89f718b</code> ?</p>