Regex to wildcard filename

(imported topic written by Nem0)

Hello,

Can anyone assist with the below query. I am trying to read all the text from a file in an analysis. The filename always starts with “Users” and is a txt file but in between is the date and time executed which will change.

lines of file (regex “Users.*.txt$”) of folder “C:”

(imported comment written by Lee Wei)

You can try this statement.

lines of files 
  whose (name of it as lowercase starts with "users" and 
     name of it as lowercase ends with ".txt") 
of folder "c:\"

There is a new wildcard search inspector “find file” in BigFix 8.x, so the following will only work if you have only 8.x clients.

lines of find files "users*.txt" of folder "c:\"

Lee Wei

(imported comment written by Nem0)

Thank you :slight_smile: