{"id":18863783,"url":"https://github.com/alexzhang1030/regex-extra","last_synced_at":"2026-02-11T02:30:16.052Z","repository":{"id":104160525,"uuid":"584634086","full_name":"alexzhang1030/regex-extra","owner":"alexzhang1030","description":"Including missing essential functions for Regex","archived":false,"fork":false,"pushed_at":"2023-12-20T09:43:04.000Z","size":808,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T10:35:52.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/alexzhang1030.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":"2023-01-03T05:39:11.000Z","updated_at":"2023-03-08T21:10:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"661c4efa-c781-4c07-8d55-6f0871311b48","html_url":"https://github.com/alexzhang1030/regex-extra","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzhang1030%2Fregex-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzhang1030%2Fregex-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzhang1030%2Fregex-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexzhang1030%2Fregex-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexzhang1030","download_url":"https://codeload.github.com/alexzhang1030/regex-extra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239808473,"owners_count":19700443,"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-11-08T04:38:33.685Z","updated_at":"2026-02-11T02:30:15.983Z","avatar_url":"https://github.com/alexzhang1030.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regex-extra\n\n[![NPM version](https://img.shields.io/npm/v/regex-extra?color=a1b858\u0026label=)](https://www.npmjs.com/package/regex-extra)\n\n![Logo](https://raw.githubusercontent.com/alexzhang1030/regex-extra/main/resources/logo.png)\n\nIncluding missing essential functions for Regex. (ESM Only)\n\n## Usage\n\nconstruct core class with regex, and all the following functions are bind to the instance.\n\n```ts\nconst RE = /\\d+/\nconst reg = new RegexExtra(RE)\n```\n\n## Functions\n\n### 1. findAt\n\n```ts\ninterface FindAtResult {\n  value: string\n  end: number\n}\nfunction findAt(str: string, start?: number, end?: number): FindAtResult | null\n```\n\nPass start and end index to find the string.\n\n### 2. isMatch\n\n```ts\nfunction isMatch(str: string, start?: number, end?: number): boolean\n```\n\nPass string to check if the regex is matched.\n\n### 3. captures\n\n```ts\nfunction captures(str: string, start?: number, end?: number): string[] | null\n```\n\nGet all the captures.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexzhang1030%2Fregex-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexzhang1030%2Fregex-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexzhang1030%2Fregex-extra/lists"}