I tried to pass a variable “MyMatch” of Variable Type “System.Text.RegularExpressions.MatchCollection” to the “Results” parameter. But I get the following error.
Option Strict On disallows implicit convertions from System.Text.RegularExpressions.MatchCollection
to System.Collection.Generic.IEnumerable(Of System.Text.RegularExpressions.Match)
Welcome to UiPath community buddy
And thats a good question to start with
Fine whenever we try to get the output of a match activity, which is of type System.Collection.Generic.IEnumerable(Of System.Text.RegularExpressions.Match)
So it implies that it is ienumerable and it has to be either called with a index to the specific value in that ienumerable or you can get the value by iterating in a for eaçh loop with type argument as object and input as match activity output variable, thus with a assign activity inside like
Out_value = item.Tostring
Thats all buddy you are done
Kindly try this and let know whether this works or not buddy
Cheers @Trevor_Kelley