Feel free to move this question to another section if you think it does not belong to the development section.
I need to run a validation on a field, which is should contain the following rule:
It should start with 4 numbers, then a dash, then 2 numbers, then dash and finally 6 numbers.
I went for the validation of program rule and got the following:
d2:validatePattern( <text>, <regex> )
But how to link it to a specific field, and what the regex that should I use ?