RegEx match Error

Hi guys,

i have extracted a text and saved in a variable and i’m trying to extract some piece of data using regex matches by using “matches” activity and saving in variable printing with write line activity.
But its not matching the valid text and printing some garbage value

but its printing
“message”: “System.Linq.Enumerable+d__97`1[System.Text.RegularExpressions.Match]”,

thanks in advance,

regards,
Sriram

You might be directly printing match object

Please use the following one to print the matched value -

match.Value

desiredText = System.Text.RegularExpressions.Regex.Match(“InputString”,“regexPattern”).Value

@Sriram07

desiredText = System.Text.RegularExpressions.Regex.Match(“InputString”,“regexPattern”).Value

1 Like

Thanks guys ! its worked
cheers

1 Like