Hi,
I had the same question as the one in the original post and didn’t want to settle on the Split solution
Here’s my solution:
The Matches activity will return an IEnumerable<Match>
and Match has a Groups method which returns a GroupCollection.
So if my activity output variable was matchOut and I wanted to get the first group in the first match instance, I would need:
matchOut(0).Groups(1).Value
Note that I used Groups(1).value
because Groups(0).value
would return the whole matched string, so matchOut(0).Groups(0).Value
would be equivalent to matchOut(0).Value