How do you use the Matches Activity - Results parameter

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)

Hi @Trevor_Kelley,

Go to the results parameter and Ctrl+k, provide the name of the variable and the type of the variable will be automatically set.

Your output variable of Matches activity should be of type System.Collection.Generic.IEnumerable(Of System.Text.RegularExpressions.Match)

Otherwise Browser for types type
System.Collections.Generic.IEnumerable
And for pass System.Text.RegularExpressions.Match

Buddy @Trevor_Kelley

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