i saw that people search quite often for an example which shows pattern/regex based validation.
it's quite easy. just use @Pattern and use the regex as value (as expected).
a short example is:
the examples shipped with every extval release shows the usage as well.
or you can check out the examples from the repository.