I have the following terms which are considered in a group.
Create Set and Delete.
For the below input
Create(Apple | Banana(Tree) | Mango (Tree) ) | Delete(Guava)|Set(Orange(Tree))
the expected split should be as follows
Create(Apple | Banana(Tree) | Mango (Tree) )
Delete(Guava)
Set(Orange(Tree))
I could come up with the following regex which is not giving the correct split.
(Create|Set|Delete)\(.*\)\s*\|