RegEx Help pulling instance count

Need a little help from some of you RegEx masters. I seriously need to get a grip on how to master it myself. But until then. If someone can help me pull the highlighted # shown below which is going to be dynamic, that would be amazing. It’s going to be in a getText activity
instanceCount

Thank you thank you ty

Hi,

Hope the following expression helps you.

System.Text.RegularExpressions.Regex.Match(strData,"(?<=with\s*)\d+(?=\s*instance)").Value

Regards,

4 Likes

Thx my friend

1 Like

as you mentionned you wanted to get better at Regex, here a site that is helpful:

you can past the Regex of Yoichi and see exactly what every part of it does. :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.