{"id":13587003,"url":"https://github.com/iustin24/rextract","last_synced_at":"2026-01-12T11:07:00.085Z","repository":{"id":59194053,"uuid":"530732729","full_name":"iustin24/rextract","owner":"iustin24","description":"CLI tool that extracts a regex pattern from a list of urls ( Rust ) ","archived":false,"fork":false,"pushed_at":"2022-09-14T14:52:08.000Z","size":43,"stargazers_count":59,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-06T05:40:50.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/iustin24.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-30T16:08:20.000Z","updated_at":"2024-10-07T06:45:49.000Z","dependencies_parsed_at":"2022-09-13T03:52:00.495Z","dependency_job_id":null,"html_url":"https://github.com/iustin24/rextract","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iustin24%2Frextract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iustin24%2Frextract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iustin24%2Frextract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iustin24%2Frextract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iustin24","download_url":"https://codeload.github.com/iustin24/rextract/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247716039,"owners_count":20984159,"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":[],"created_at":"2024-08-01T15:05:57.612Z","updated_at":"2026-01-12T11:07:00.079Z","avatar_url":"https://github.com/iustin24.png","language":"Rust","readme":"# rextract\nCLI tool that extracts a regex pattern from a list of urls. \nThe tool is written in Rust and supports PCRE.\n\n## Installation\n\n### Step 1:\n\nVisit https://rustup.rs/ and follow the instructions to get started with rust and cargo.\n\n### Step 2: \n\n```\n\u003e cargo install --git https://github.com/iustin24/rextract\n```\n\n## Usage\n\nThe tool takes a list of urls from stdin and extracts the regex supplied as an argument. \n\n### Extract HTML Title ( using lookarounds ):\n\n```\n\u003e cat urls.txt\nhttps://www.google.com/\nhttps://youst.in/\n\n\u003e cat urls.txt | rextract '(?im)(?\u003c=\u003ctitle\u003e).*(?=\u003c/title\u003e)'\nGoogle\nYoustin\n```\n\n### Extract UUIDs\n\n```\n\u003e cat urls.txt\nhttps://www.uuidtools.com/docs\n\n\u003e cat urls.txt | rextract '[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}'\nb01eb720-171a-11ea-b949-73c91bba743d\nb01eb720-171a-11ea-b949-73c91bba743d\nb01eb720-171a-11ea-b949-73c91bba743d\nb01eb720-171a-11ea-b949-73c91bba743d\n```\n","funding_links":[],"categories":["Rust","[](#table-of-contents) Table of contents"],"sub_categories":["[](#searchers-scrapers-extractors-parsers)Searchers, scrapers, extractors, parsers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiustin24%2Frextract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiustin24%2Frextract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiustin24%2Frextract/lists"}