Multiple regex in single match activity

Input string can be
Odin Singapore Pte Ltd / Not applicable → here I need value before /
or
Odin Singapore Pte Ltd → here there is no / so I need whole
I have used this for the 1st condition - “(.+)(?=/)”
but I want it to work for second one as well so how can I add this condition to this match code

@Gaurav07

you can also use if condition…if your string contains / …then use regex else assign your whole string as output string.

2 Likes

Gaurav07.zip (10.8 KB)

Please find the attached file.

Please mark this as a soltuion if your requirement met.

Thanks,
Anil

I want to use regex … please provide code for single regex which will cover for both conditions