{"id":26221630,"url":"https://github.com/sleepytariq/regex-filter","last_synced_at":"2025-10-05T18:45:09.818Z","repository":{"id":60492664,"uuid":"524354714","full_name":"sleepytariq/regex-filter","owner":"sleepytariq","description":"Replace matched strings in file names or file content with specified substitute using regular expressions","archived":false,"fork":false,"pushed_at":"2023-07-22T10:42:27.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-05-03T04:53:15.026Z","etag":null,"topics":["python3","regular-expression"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sleepytariq.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":"2022-08-13T09:28:29.000Z","updated_at":"2024-05-03T04:53:18.324Z","dependencies_parsed_at":"2023-01-28T16:01:11.306Z","dependency_job_id":"5af7407c-566d-42fb-8c97-46b480c9000f","html_url":"https://github.com/sleepytariq/regex-filter","commit_stats":null,"previous_names":["sleepytariq/regex-filter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepytariq%2Fregex-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepytariq%2Fregex-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepytariq%2Fregex-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sleepytariq%2Fregex-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sleepytariq","download_url":"https://codeload.github.com/sleepytariq/regex-filter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243251688,"owners_count":20261259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["python3","regular-expression"],"created_at":"2025-03-12T16:29:04.376Z","updated_at":"2025-10-05T18:45:09.727Z","avatar_url":"https://github.com/sleepytariq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n1. Clone the repository `git clone https://github.com/illbison/regex-filter` or download as [zip](https://github.com/illbison/regex-filter/archive/refs/heads/main.zip)\n2. Install dependencies `pip install -r requirements.txt`\n3. (Optional) Install 7zip and add it to your PATH variable to handle compressed files\n4. Run with `python regex_filter.py ...`\n\n## Usage\n```console\nusage: regex_filter.py -i INPUT [INPUT ...] -f FILTER -o OUTPUT [-m] [-r] [-l] [-h]\n\nReplace matched strings in file content and file names with specified substitute using regular expressions\n\nRequired:\n  -i INPUT [INPUT ...], --input INPUT [INPUT ...]\n                        Path to files or directories containing files\n  -f FILTER, --filter FILTER\n                        Path to a json file in REGEX:WORD format\n  -o OUTPUT, --output OUTPUT\n                        Path to output directory\n\nModifiers:\n  -m, --modify          Use filter to modify content of files\n  -r, --rename          Use filter to rename files\n\nOptional:\n  -l, --log             Log changes to a text file, NOTE: should only be used to debug the regex\n  -h, --help            Show this help message and exit\n```\n\nThe json file must be in `REGEX:WORD` format where the keys are the regex and the values are the replacement. See [example](example.json)\n\nA new directory named `REGEX_FILTER` will be created in the given output directory containing the cleaned input\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleepytariq%2Fregex-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsleepytariq%2Fregex-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleepytariq%2Fregex-filter/lists"}