How can i get and seperate this text in 3 different variables from a website?

Hi @170290064

First, use the Get text activity to extract the data and store in a Variable called Input_Str.

- Assign -> ClientID [String Datatype] = System.Text.RegularExpressions.regex.Match(Input_Str.toString,"(?<=Client ID:\s+).*").Value

- Assign -> ClientName [String Datatype] = System.Text.RegularExpressions.regex.Match(Input_Str.toString,"(?<=Client Name:\s+).*").Value

- Assign -> ClientCountry [String Datatype] = System.Text.RegularExpressions.regex.Match(Input_Str.toString,"(?<=Client Country:\s+).*").Value

Check the below workflow for better understanding,

Regex_Practice.xaml (14.7 KB)

Note : Check the output in the Immediate panel in the above image.

Hope it helps!!

1 Like