diff --git a/filesystem.go b/filesystem.go
index <HASH>..<HASH> 100644
--- a/filesystem.go
+++ b/filesystem.go
@@ -19,6 +19,7 @@ import (
 	"os"
 
 	"github.com/pkg/errors"
+	"regexp"
 )
 
 func EnsureDir(path string) error {
@@ -46,3 +47,21 @@ func GetFiles(path string) ([]string, error) {
 	}
 	return fileNames, nil
 }
+
+func GetFilteredFiles(path string, filter string) ([]string, error) {
+	files, err := GetFiles(path)
+	if err != nil {
+		return nil, err
+	}
+	filterRegexp, err := regexp.Compile(filter)
+	if err != nil {
+		return nil, errors.Wrapf(err, "cannot compile filter regexp '%s'", filter)
+	}
+	filteredFiles := make([]string, 0, len(files))
+	for _, file := range files {
+		if filterRegexp.MatchString(file) {
+			filteredFiles = append(filteredFiles, file)
+		}
+	}
+	return filteredFiles, nil
+}
\ No newline at end of file
Add function to get files from directory, that match regexp.