First words
All credits to Daniel Heid. This code is based on his PR in the hibernate-validator repository on Github. Thank you, Daniel!...
For further actions, you may consider blocking this person and/or reporting abuse
I would prefer
`
There are some cases that this doesn't work. Try to pass in the string "f-e-4-a-a". The result will be true and it's against the UUID patterns.
"f-e-4-a-a" will be parsed as "0000000f-000e-0004-000a-00000000000a" and I agree that it's against the general UUID patterns. I think it would be helpful if such cases are mentioned at the beginning of the article.