diff --git a/HexagonBase/includes/meta_files.inc b/HexagonBase/includes/meta_files.inc
index 70ad197..c452cc0 100644
--- a/HexagonBase/includes/meta_files.inc
+++ b/HexagonBase/includes/meta_files.inc
@@ -97,3 +97,30 @@ function hex_file_path_multiple($namespace, $scope = 'all') {
   $files = hex_cache('files')->data;
   return !empty($files[$scope][$namespace]) ? $files[$scope][$namespace] : array();
 }
+
+/**
+  * Returns an array of file paths based on a pattern.
+  *
+  * @see hex_file_path() for more info.
+  *
+  * @param $pattern
+  *  A regex pattern that will be compared to each namespace for a given
+  *  $scope.
+  * @param $scope
+  *  Can be 'all', 'theme' or 'plugin'. It can also be a specific theme or
+  *  plug-in name, whichever owns or "hosts" the file. File discovery depends
+  *  on how the scope was defined from the .info/.pinfo file. When this
+  *  function is called, it can be any sub-set of the defined scope. It can
+  *  also be a super-set but the returned file paths will always be limited by
+  *  the scope set from .info/.pinfo.
+ */
+function hex_file_path_pattern($pattern, $scope = 'all') {
+  $files = hex_cache('files')->data;
+  $list  = array();
+  if (isset($files[$scope])) {
+    foreach (preg_grep($pattern, array_keys($files[$scope])) as $namespace) {
+      $list = array_merge($list, $files[$scope][$namespace]);
+    }
+  }
+  return $list;
+}
\ No newline at end of file

