Actually the expression is working, i just hardcoded it like this, it worked
mention like this in expression of Matches activity buddy “(?<= ’ ” + labelbefore + “ ')(.*?)(?= ’ ” +labelafter + “ ')”
but make sure that labelbefore and labelafter are two variables of type string
and get the output with a variable named out_matches and pass this in for each loop activity and keep the type argument as object
–inside the for each loop use a write line activity to display the value of the matches found by mentioning like this item.ToString