{"id":29175752,"url":"https://github.com/michaeldera/simple-regex-ts","last_synced_at":"2025-07-01T16:09:21.589Z","repository":{"id":39860177,"uuid":"199259025","full_name":"michaeldera/simple-regex-ts","owner":"michaeldera","description":" A simple package with common regex patterns for Zimbabwe","archived":false,"fork":false,"pushed_at":"2024-06-01T12:12:56.000Z","size":10582,"stargazers_count":14,"open_issues_count":6,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-27T07:49:04.674Z","etag":null,"topics":["npm","npm-module","npm-package","regex","regexp","typescript","zimbabwe"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/simple-regex","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/michaeldera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-07-28T07:55:57.000Z","updated_at":"2024-05-23T20:14:59.000Z","dependencies_parsed_at":"2025-01-26T05:30:44.437Z","dependency_job_id":"91307ea2-940e-4125-8b6d-2ff17d284bba","html_url":"https://github.com/michaeldera/simple-regex-ts","commit_stats":null,"previous_names":["michaeldera/simple-regex"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/michaeldera/simple-regex-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeldera%2Fsimple-regex-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeldera%2Fsimple-regex-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeldera%2Fsimple-regex-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeldera%2Fsimple-regex-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaeldera","download_url":"https://codeload.github.com/michaeldera/simple-regex-ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeldera%2Fsimple-regex-ts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262397428,"owners_count":23304616,"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":["npm","npm-module","npm-package","regex","regexp","typescript","zimbabwe"],"created_at":"2025-07-01T16:09:20.650Z","updated_at":"2025-07-01T16:09:21.574Z","avatar_url":"https://github.com/michaeldera.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Regex\n[![npm version](https://badge.fury.io/js/simple-regex.svg)](https://badge.fury.io/js/simple-regex)\nA simple package with common regex pattens for Zimbabwe\n\n## Links\n[Simple Regex Documentation](https://simple-regex.netlify.com/)\n\n[Github Repository](https://github.com/michaeldera/simple-regex)\n\n[NPM Package](https://www.npmjs.com/package/simple-regex)\n\n## Installation \nFor npm users `npm i simple-regex`\nFor yarn users `yarn add simple-regex`\n\n## Usage\nTo test a variable against a Regex expression: \n\n`SimpleRegex.MobileNumber.Econet.test(\u003cyour-variable\u003e)`. This will return a `boolean` which indicates whether your variable matches the Regex Pattern.\n\nYou can also inject the Regex Pattern into HTML form fields. An example of this pattern in ReactJS \n`\u003cinput type=\"text\" name=\"number_plate\" pattern={SimpleRegex.NumberPlate} title=\"Zimbabwean Number Plate\"\u003e`\n\n### Global Flag\nStarting from version 2.0.0-alpha the package no longer has the global flag set by default. See [an issue about it here](https://github.com/michaeldera/simple-regex-ts/issues/8) \n\n### Available Patterns\n\n`SimpleRegex.MobileNumber.Econet` Pattern for Econet Mobile Numbers\n\n`SimpleRegex.MobileNumber.Telecel` Pattern for Telecel Mobile Numbers\n\n`SimpleRegex.MobileNumber.Netone` Pattern for Netone Mobile Numbers\n\n`SimpleRegex.NumberPlate` Pattern for Zimbabwean National Vehicle Registration Numbers\n\n`SimpleRegex.PassportNumber` Pattern for Zimbabwean Passport Numbers\n\n`SimpleRegex.NationalId` Pattern for Zimbabwean National Identification Numbers \n\n`SimpleRegex.EmailAddress` Pattern for Email Addresses\n\n`SimpleRegex.DriversLicence` Pattern for Zimbabwean Driver's Licences\n\n`SimpleRegex.SSN` Pattern for Zimbabwean Social Security Number (NSSA)\n\n`SimpleRegex.DomainName` Pattern for Zimbabwean domain name","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeldera%2Fsimple-regex-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaeldera%2Fsimple-regex-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeldera%2Fsimple-regex-ts/lists"}