How to find multiple instances of a element in a string

Hi,

I have a string:- “ABCnameABCnameEFnameGHI”

I have to find the value of second and third “name”.Length of the name is not fixed.How to do that?

did you try using split string activity with abc as splitter?

1 Like

Hi @PULKITGUPTA

Try this
yourString.Split({“name”},StringSplitOptions.RemoveEmptyEntries)(Nth value)

Eg : “ABCnameABCnameEFnameGHI”.Split({“name”},StringSplitOptions.RemoveEmptyEntries)(2)

It gives EF

Best Regards,
Ranjith.

1 Like

Hi @PULKITGUPTA,

You could try to follow the example attached:
Main.xaml (8.6 KB)

image

imageimage

2 Likes