Good morning
I’m attempting to build a data table using REGEX. I need to place the “groups” into the columns on the data table. Any assistance will be appreciated. Thanks!
Once after using Matches activity or with an expression the output of 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
Use the same for all in a ADD DATAROW ACTIVITY
Say your datatable name is dt
Now use a FOR EACH activity and pass the above matches varivale as input and change the type argument as System.Text.RegularExpressions.Regex.Match
Inside the loop use a Add Datarow activity and mention in ArrayRow property like this