{"id":22366739,"url":"https://github.com/vaeth/replacer","last_synced_at":"2025-07-14T09:42:54.766Z","repository":{"id":141994344,"uuid":"128547404","full_name":"vaeth/replacer","owner":"vaeth","description":"Search and replace python regular expressions within many files interactively","archived":false,"fork":false,"pushed_at":"2021-06-13T11:40:53.000Z","size":41,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-14T23:43:30.819Z","etag":null,"topics":["regular-expression","replace-in-files","replace-text"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaeth.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-04-07T16:32:42.000Z","updated_at":"2023-09-08T03:28:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4815da6-de7f-4abc-8eb2-a6aa8401b11e","html_url":"https://github.com/vaeth/replacer","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/vaeth/replacer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Freplacer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Freplacer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Freplacer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Freplacer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaeth","download_url":"https://codeload.github.com/vaeth/replacer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaeth%2Freplacer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265272495,"owners_count":23738485,"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":["regular-expression","replace-in-files","replace-text"],"created_at":"2024-12-04T18:15:30.270Z","updated_at":"2025-07-14T09:42:54.752Z","avatar_url":"https://github.com/vaeth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# replacer\n\nSearch and replace python regular expressions within many files interactively\n\n(C) Martin Väth (martin at mvath.de).\nThis project is under the MIT license\nSPDX-License-Identifier: MIT\n\nThe aim of the project is to replace regular expressions interactively\nin a collection of files.\n\nIts functionality is similar to the perl script `plrep` from\nhttps://github.com/vaeth/mv_perl/\nas well as to the ancient python script\nhttps://github.com/vaeth/pyrep/\nIn a sense, it can be considered a successor of both projects,\nalso properly dealing with replacements of expressions over multiple lines.\n(In the previous projects, multiple lines had only been rudimentarily\nimplemented or not at all, respectively.)\n\nTo install this script, just copy the content of bin/ into your `$PATH`.\nTo get zsh completion, copy the content of zsh/ to your zsh's `$fpath`,\nperhaps `/usr/share/zsh/site-functions/`.\n\nIf you have gettext installed, you can also install translations:\nTo install the translation catalogue use the command `po/install-mo \"\"`\n(omit the `\"\"` to get help about the command).\nFor testing, you can set REPLACER_NLS or NLS to the catalogue path.\nFor installation, it is recommended to adapt the line\nlocaledir = '' in bin/replacer appropriately.\n\nThe script executes just `python` and is tested with python2.7 and python3.6,\nbut it should work with all flavors of python3 and probably also some older\nversions of python2. Some details on codings and regular expressions might\ndepend on the python interpreter, so it might be advisable to specify\na specific interpreter in front of the command line (if in doubt try the\nnewest available) if things are not working the way you expect.\n\nUnder windows, it might be necessary to either have the colorama package\ninstalled or to enable ANSI color emulation or to disable colors\nwith --colors=none to get readable output.\n\nFor Gentoo, there is an ebuild in the `mv` repository\n(available by `app-select/eselect-repository` or `app-portage/layman`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaeth%2Freplacer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaeth%2Freplacer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaeth%2Freplacer/lists"}