Country of Incorp.: \nUNITED ARAB \nEMIRATES
Country of Incorp.: \nUK
I want the name of the country with the use of regex.Bot should capture UNITED ARAB EMRATES, UK or any other country whichever is present. Please help
Country of Incorp.: \nUNITED ARAB \nEMIRATES
Country of Incorp.: \nUK
I want the name of the country with the use of regex.Bot should capture UNITED ARAB EMRATES, UK or any other country whichever is present. Please help
Hello,
You can put this in to an assign activity:
Country = System.Text.RegularExpressions.Regex.Match(yourtextvariable,“(?>Country of Incorp.: )(.+)”).Groups(1).Value.ToString.Replace(“\n”,“”).Trim
You can test your regex here:
Here you can have more info about Regex:
I hope it helps…
Vasile.
Split(Regex.Replace(stringVariable,”\n”),”:”)(1).ToString
Make sure to import System.Text.RegularExpressions.Regex from the imports panel besides arguments
Please mark as sln is it works
Your job could be done by Replace method of String,
plz have a look at screenshot as below,
Cheers,
Pankaj