title: Validate UUID without divider "-"
body: <p>I get UUIDs in the format like "005056963AB75FD48BDC59C100314C40" and want to validate them. I tried code like this:</p>
  
  <pre><code>public boolean isUUID(String uuid){
  
      try {
          UUID.fromString(uuid);
      } catch (Exception e) {
          return false;
      }
      return true;
  
  }
  </code></pre>
  
  <p>But this will tell me that "005056963AB75FD48BDC59C100314C40" is not a valid ID. The site <a href="http://guid.us/Test/GUID" rel="nofollow">http://guid.us/Test/GUID</a> on the other hand tells me it is and gives me back an UUID with the "-" added.
  Is there an elegant way to validate this UUID in java or do I have to manually add "-" to the right places? </p>