How to get a specific text from a string

I have string value (CT Set:200 CIS FS) I want only this string (200 CIS FS)
Please help me on this
Ex-Input-CT Set:200 CIS FS
Output-200 CIS FS

Hi @Himanshu_Pratap_Rana

Use the split function to extract the output.

- Assign -> StrVar = "CT Set:200 CIS FS"
- Assign -> StrVar = StrVar.Split(":")(1).toString

Hope it helps!!

Hello @Himanshu_Pratap_Rana,
use the matches activity.
Try this “(?<=CT Set:)\d+\s[A-Z]+\s[A-Z]+”

Cheers! :slight_smile:

Hi @Himanshu_Pratap_Rana

Assign ExInput = CT Set:200 CIS FS
Assign Output = ExInput.Split(":"c)(1).ToString

Hope it works

He give me error-conversions from string to char

Your variable has to be in string datatype.

Store the input data in a string variable StrVar
StrVar (String) = “CT Set:200 CIS FS”

Write the expression in another assign and create a variable Output in String datatype
Output (String) = StrVar.Split(“:”)(1).toString

Hope you understand!!

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