How to use asteriks(*) with file paths?

Can we use asteriks in file paths?
For instance - I want to select only files which contains text
test_1234
abc_1234
dfg_1234

Hi @bp777,

Why don’t you use “Contains”?

yourString.Cointains(YourSearchString)

@rmunro
Contains() return bool, and I need to get text only

@bp777,

True but you can get all files using: Directory.GetFiles and just loop through it using a for each, if the file contains what you’re looking for then do something. Else don’t.

1 Like