find_files_by_name_and_content_with_regex

Finds files by name and content using regex patterns.

Arguments

NameTypeDescriptionRequired

find_file_name_pattern

string

The regex pattern used to find files by their names.

find_content_pattern

string

The regex pattern used to filter files by their content.

limit

number

Limit the amount of results returned.

Returns

TypeDescription

array

List of relative paths to files that match both the file name and content patterns.

Example

- name: find_files_by_name_and_content_with_regex
  arguments:
    find_file_name_pattern: <grep-compatible-regex>
    find_content_pattern: <grep-compatible-regex>
  returns: ['path/to/file1', 'path/to/file2']

Last updated