{"id":17325678,"url":"https://github.com/sagebind/retest","last_synced_at":"2025-10-25T00:14:12.785Z","repository":{"id":35575331,"uuid":"39847565","full_name":"sagebind/retest","owner":"sagebind","description":"Command-line regular expression tester","archived":false,"fork":false,"pushed_at":"2023-03-27T11:57:57.000Z","size":104,"stargazers_count":31,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T17:04:40.134Z","etag":null,"topics":["regex","regex-validator","utilities"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sagebind.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-07-28T17:16:30.000Z","updated_at":"2024-12-21T20:09:14.000Z","dependencies_parsed_at":"2025-04-14T17:04:45.062Z","dependency_job_id":null,"html_url":"https://github.com/sagebind/retest","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fretest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fretest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fretest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sagebind%2Fretest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sagebind","download_url":"https://codeload.github.com/sagebind/retest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923767,"owners_count":21183953,"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":["regex","regex-validator","utilities"],"created_at":"2024-10-15T14:14:03.963Z","updated_at":"2025-10-25T00:14:12.692Z","avatar_url":"https://github.com/sagebind.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# retest\n\nRetest is a regular expression tester that can be used in the terminal. It is meant to be a simple and quick utility to aid you in developing regular expressions. Like [regular expressions 101](https://regex101.com), but in the terminal.\n\n## Features\n\n- **Piping!** You can pipe a subject string to match against into standard input.\n- **Nested highlighting!** If the regular expression contains groups and subgroups, they will be highlighted in different colors than the whole match.\n- **All matches!** Retest finds all non-crossing matches in the subject string.\n- **List of matches!** You can optionally display all matches as a formatted list, which includes the match order and the indexes in the string.\n\nWould you like to suggest new features? [Make an issue on GitHub](https://github.com/sagebind/retest/issues/new) describing the feature, or [shoot me an email](mailto:me@stephencoakley.com) to ask me directly.\n\n## Install from release\n\nBinaries for Linux are provided for each release and available on the [releases page](https://github.com/sagebind/retest/releases). Just download a \"retest\" binary and place it somewhere that is in your $PATH (like `/usr/local/bin`), and you're ready to go.\n\n## Compiling and installing from source\n\nFirst, get the source code by cloning from GitHub:\n\n    $ git clone https://github.com/sagebind/retest.git\n    $ cd retest\n\nYou can install dependencies and compile all at once using `cargo`:\n\n    $ cargo build\n\nA simple `Makefile` is also provided for easily installing and uninstalling retest. To install globally, you can follow the traditional Linux steps:\n\n    $ make\n    $ sudo make install\n\nThis will compile retest and place a globally available executable into `/usr/local/bin`. Similarly, you can uninstall retest with\n\n    $ sudo make uninstall\n\n## Usage\n\nRetest accepts one regular expression as an argument, and then matches it against a subject string. The subject will be printed back out, with all matches found highlighted. For example:\n\n    $ echo 'fee fi fo fum' | retest 'f\\w\\w'\n\nwill output something like the following (text in square brackets would be highlighted):\n\n    [fee] fi fo [fum]\n\nBy default, the subject is read from standard input. If you'd like to specify the subject as an argument, you can use the `--subject` (or `-s`) option:\n\n    $ retest '\\w+\\s' --subject 'fee fi fo fum'\n\nFor more options and tricks, check the help message from the program:\n\n    $ retest --help\n\n## Where to get help\n\nNeed help? Just [send me an email](mailto:me@stephencoakley.com) with your questions. Be sure to add \"retest\" to the message subject line so I know how I can help you out.\n\n## License\n\nAll documentation and source code is licensed under the Apache License, Version 2.0 (Apache-2.0). See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagebind%2Fretest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsagebind%2Fretest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsagebind%2Fretest/lists"}