find_files_by_content_with_regex
Retrieves an array of file paths from the codebase that match a given regex pattern in their content.
Arguments
Name | Type | Description | Required |
---|---|---|---|
path_to_directory | string | The directory to search in. | |
find_content_pattern | string | The regex pattern used to find content in files. | |
cached_file_paths | array | A cached array of file paths to speed up the search. | |
limit | number | Limit the amount of results returned. | |
exclude_duplicates | boolean | Exclude duplicates from the results. |
Returns
Type | Description |
---|---|
array | An array of file paths that contain content matching the regex pattern. |
Example
Last updated