{"id":23940405,"url":"https://github.com/stuarthicks/rextract","last_synced_at":"2026-06-15T03:33:02.923Z","repository":{"id":227673054,"uuid":"772114308","full_name":"stuarthicks/rextract","owner":"stuarthicks","description":"Simple shell regex capture extractor","archived":false,"fork":false,"pushed_at":"2025-08-02T13:00:07.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-15T03:33:00.160Z","etag":null,"topics":["cli","go","golang","regex","regular-expression","regular-expressions"],"latest_commit_sha":null,"homepage":"","language":"Go","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/stuarthicks.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-14T15:04:43.000Z","updated_at":"2025-08-02T13:00:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"eae66c10-2a51-4610-a6cb-e72e9d885b2f","html_url":"https://github.com/stuarthicks/rextract","commit_stats":null,"previous_names":["stuarthicks/rextract"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/stuarthicks/rextract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Frextract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Frextract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Frextract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Frextract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuarthicks","download_url":"https://codeload.github.com/stuarthicks/rextract/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuarthicks%2Frextract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34346867,"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-15T02:00:07.085Z","response_time":63,"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":["cli","go","golang","regex","regular-expression","regular-expressions"],"created_at":"2025-01-06T03:17:07.180Z","updated_at":"2026-06-15T03:33:02.900Z","avatar_url":"https://github.com/stuarthicks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rextract\n\nSimple shell regex capture extractor. Processes STDIN and matches using the provided regex. The first capture group defined in the regex is printed to STDOUT (or a specific named group using `-g`).\n\n## Why?\n\nThis is nothing new, and can be achieved with many other tools such as Perl, Sed, etc. However I often struggle to remember the specific flags and quirks of those tools, especially when switching between BSD and Linux based systems. This tool is as simple as I've always wanted this \"regex extractor\" functionality to be.\n\n## Install\n\nUsing Homebrew:\n\n    brew install stuarthicks/brews/rextract\n\nUsing Go:\n\n    go install github.com/stuarthicks/rextract@latest\n\n## Usage\n\n    Usage of rextract:\n      -e string\n            A regular expression to match against stdin (default \".\")\n      -g string\n            Extract this named capture group instead of the first capture\n\n## Examples\n\n    echo 'foobarbat' | rextract -e '(bar)' # prints 'bar'\n\n    echo 'foobarbat' | rextract -e '(foo)(bar)' # prints 'foo'\n\n    echo 'foobarbat' | rextract -e '(?P\u003cone\u003efoo)(?P\u003ctwo\u003ebar)' -g two # prints 'bar'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuarthicks%2Frextract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuarthicks%2Frextract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuarthicks%2Frextract/lists"}