Extract data from loop

In a for each loop. A paragraph is stored in a get text variable for each iteration. The paragraph contains a word “approx. ××××” where ×××× generates a new number every iteration. I need to get that value in a message box. How do i do that?

Hi,

How about the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=approx\.\s*)\d+").Value

Regards,

1 Like

I get an error stating " Option strict on disallows implicit conversions from ‘String’ to ‘Boolean’".

Hi,

Can you share screenshot of the error and workflow?

Regards,

@Yoichi

The logic works!
Thank you so much!

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