/*** !Test expected: - !Result solution: !Solution x: [1, 2, 2, 4] - !Result solution: !Solution x: [1, 2, 3, 4] - !Result solution: !Solution x: [1, 3, 2, 4] - !Result solution: !Solution x: [1, 3, 3, 4] ***/ include "regular_regexp.mzn"; array [1..4] of var 1..4: x :: add_to_output; constraint regular(x, "1 (2|3){2} 4");