Check String with variable

Hello Guys,

I need to know how to check a String with variables. Example… In for each activity I check if any file exist in a path, using Item.ToString.Contains(“String”) = True … then I need to check:

like… Item.ToString.Contains(“String” + Anything + “.xlsm”) = True

Any like Asterisk in selector.

How can I to check if exists?

1 Like

Use isMatch activity (It used Regex)

In pattern, you need to mention “string.+anything.+.xlsm”

To check the Regex, you can use regexr.com

Thanks for your answer, but I do this:

item.ToString.Contains(“xlsm”) AND item.ToString.Contains(“String”) = True

It work’s fine.

2 Likes

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