{ System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(#trigger.data.RegexParameter); string path = #trigger.data.Path; // match to full path! to match to beginning of file name, use System.IO.Path.DirectorySeparatorChar instead of ^ return string.Join( Environment.NewLine, System.IO.Directory.GetFiles( path, "*.*" ) .Where( path => regex.IsMatch(path) ) .ToList() ); }