How to split a string based on delimiter

Hi,

I have a string like P-10-2022-1002-1234\02

I want to split the output into two based on .

String 1: P-10-2022-1002-1234
String 2: 02

HI @aishwarya1

Try with this expression

Split("P-10-2022-1002-1234\02","\")(0)

image

Split("P-10-2022-1002-1234\02","\")(1)

Regards
Gokul

Hi,
Another way is available which is easiest way, i.e. by using the Text to Left/Right activity in this activity we need to give Full Text (“P-10-2022-1002-1234\02”) as input, give "" as separator, store two strings as Str1 and Str2 now you will get require output.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.