Hi
The expression would be like this
If str_input = “246859?22575”
Then str_output = System.Text.RegularExpressions.Regex.Replace(str_input,”(\W…)”,””).ToString
Hello @AditiGandhi
You can do all of the processing using a single Assign Activity
Assign this to a string Datatype variable and you’ll get the output in this format
this is the code :- string.Join(",",(System.Text.RegularExpressions.Regex.Matches(Strr,"\d+\?\d+|\d+")).Cast(of match).select(Function(r) System.Text.RegularExpressions.Regex.Replace(cstr(r.value),"\?\d\d","" ) ).ToArray)
What this codes does is first it takes the entire number with ? and the two digits than it checks one by one and replaces the question mark and the two digits