There is not standard way (known to me) to achieve this. You should write your own validator.