{"id":16383614,"url":"https://github.com/danielfsousa/search-regex","last_synced_at":"2026-06-29T10:32:08.804Z","repository":{"id":98935612,"uuid":"69615580","full_name":"danielfsousa/search-regex","owner":"danielfsousa","description":"Search for a regular expression in all files inside a folder","archived":false,"fork":false,"pushed_at":"2016-09-30T00:48:22.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T22:30:28.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielfsousa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-29T23:19:43.000Z","updated_at":"2016-09-30T00:37:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c93d5e2-b824-4bff-a007-c18ed55a2e0b","html_url":"https://github.com/danielfsousa/search-regex","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"cbe4f62ca3c548fe98a068c6b4430253353c7df7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielfsousa/search-regex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fsearch-regex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fsearch-regex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fsearch-regex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fsearch-regex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielfsousa","download_url":"https://codeload.github.com/danielfsousa/search-regex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielfsousa%2Fsearch-regex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34923763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T04:09:14.292Z","updated_at":"2026-06-29T10:32:08.787Z","avatar_url":"https://github.com/danielfsousa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SearchRegex\nSearch for a regular expression in all files inside a folder\n\n## Requirements\n* [Python 3.x](https://www.python.org/downloads/)\n* [PDFMiner.six](https://github.com/goulu/pdfminer)\n\n## Supported Files\n* All non-binary files like TXT, HTML, PHP, PY, etc.\n* PDF\n\n## How to Install\n```bash\n$ pip install pdfminer.six\n\nTODO\n```\n\n## How to Use\n**1. Use in command-line:**\n* [FOLDER]: The folder where the files are located (You can use -c for the current folder)\n* [REGEX]: The regular expression to find\n```bash\n$ python search_regex.py [FOLDER] [REGEX]\n```\n\nE.g. Find the word 'programming':\n```bash\n$ python search_regex.py -c \"programming\"\n```\n\nE.g. Find emails:\n```bash\n$ python search_regex.py -c \".+@.+\"\n```\n\n**2. Use as a library:**\n\n    result = SearchFiles(DIR, REGEX)\n    found_files = result.files\n    \nE.g Find emails:\n```bash\n\u003e\u003e\u003e import os\n\u003e\u003e\u003e from modules.search_files import SearchFiles\n\u003e\u003e\u003e\n\u003e\u003e\u003e result = SearchFiles(os.getcwd(), \".+@.+\")\n\u003e\u003e\u003e result.files\n{'telefone_e_email.py': 1, 'example.py': 1, 'personal_emails.txt': 3}\n\u003e\u003e\u003e result.total_matches\n5\n\u003e\u003e\u003e result.total_matches_files\n3\n\u003e\u003e\u003e result.folder\n'C:\\\\example'\n\u003e\u003e\u003e result.regex\n'.+@.+'\n```\n\n## TODO\n* Package this project\n* Add support for DOC and DOCX\n* Add support for EPUB\n* Add support for MOBI\n* Add support for compressed files like ZIP or RAR\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielfsousa%2Fsearch-regex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielfsousa%2Fsearch-regex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielfsousa%2Fsearch-regex/lists"}