I have a small problem regarding retrieving data.
I am supposed to get a certain confirmation code from an excel file which I can using a string such as:
row(“confirmation code”).ToString
most confirmation codes come out like this “123-456” but however some added a little memo at the end like 123-456(abc).
Is there a way to remove the brackets and text so that it will only include the numbers and the “-”
If You want only numbers and -
then use Matches activity with pattern: “-*\d”
And then using String.Join(""MatchesOutPut)-----> for 123-456(abc) ans : 123-456
If the characters are fixed length then using Substring u can get
say Variable.Substring(0,7)----------> 123-456(abc) ans : 123-456
If at the end ( is added always then
Using Split U can get
Variable.Split("("c)(0)—>123-456(abc) ans : 123-456