Validation for relation between String and repeatable group

I have a model that contains a group group1 with a repeatability of 100 with two fields: field1(String) and field2(String).  Additionally, I have a field3 (string, is not part of group1) in which the user is allowed to write a text using only texts present in field2 of group1, separated by , : or. Is it possible to model such validation?

Example: group1/0/field2 = “text0”, group1/1/field2 = “text1”, group1/2/field2 = “text2”
In field2
allowed: text1, text3. text1:text2
Not allowed: text1, text3. hallo world text1:text2

This is not possible with the standard A12 Kernel Validation Language.

However, it possible to write a CustomCondition that does what you want. You may have to implement it the condition twice (FE, BE).

See also this example: Modeling & Development MMH: Custom Condition

Note: From my point of view it seems odd that the text snippets need to be duplicated in the document. Why is the combined field necessary? What is missing in the repeat to make it sufficient?

It is not really the text which is being duplicated. The repeat is in fact a map between a path to a number field and a unique name given by the user, for instance salary, tax, insurance etc.. In the combined field the user can write a rule containing only those unique names and operators in order to compute the result, for instance netto = salary- salary*tax-insurance. It is necessary because the result of this computation is needed in printed documents and computations including non-integer numbers are not supported by print engine. I have a solution which validates the complete model but it happens a bit later and I hoped that it would be possible to validate earlier.