Generating sentence with input sentence and defined rule

Hi

I have a problem here.Wanted to know what best solution we have in UiPath to implement.

My question is i have some rules on which i have to form a sentence from the input sentence given.Each Combination is an input to other application where i need to verify if its correct.

Can someone help with solution for below scenario.

Input Sentence - (Going(out) to the ocean) filming (the animals)

Rule → Any word outside bracket is Mandatory – Filming is mandatory

Below are some combinations that i have to generate and check.

• Filming
• Filming the animals
• Going to the ocean Filming
• Going out to the ocean Filming
• Going to the ocean Filming the animals
• Going out to the ocean Filming the animals

TIA

Hi @JITU99 ,
Try using string manipulation using split function.

Hope it helps!!