In Sitecore when I add items to my Treelist I would like the treelist to only allow no items or 2 – 3 items.
In the template of the item I can set RegEx in the validation field to achieve this.
I’ve found this RegEx here: ^.{0,116}$
This regex allows 0-3 items. But how could I not allow 1?
Update: Edited my first question to be more exact into my problem. Sorry..
Figured out the answer to my question.
This would validate correctly:
If anyone has a better answer, please submit. Thanks for the help!