{"id":13555725,"url":"https://github.com/aaditmshah/regex","last_synced_at":"2025-04-03T08:31:57.998Z","repository":{"id":8471890,"uuid":"10071905","full_name":"aaditmshah/regex","owner":"aaditmshah","description":"Native RegExp compatible regular expressions for JavaScript. Patterns may be composed of subexpressions and multiple expressions may be combined into a single expression.","archived":true,"fork":false,"pushed_at":"2016-11-24T18:18:03.000Z","size":5,"stargazers_count":16,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-04T04:32:21.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/aaditmshah.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}},"created_at":"2013-05-15T05:46:08.000Z","updated_at":"2024-05-17T16:41:09.000Z","dependencies_parsed_at":"2022-07-21T14:32:19.996Z","dependency_job_id":null,"html_url":"https://github.com/aaditmshah/regex","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/aaditmshah%2Fregex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaditmshah%2Fregex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaditmshah%2Fregex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaditmshah%2Fregex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaditmshah","download_url":"https://codeload.github.com/aaditmshah/regex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246965990,"owners_count":20861977,"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-01T12:03:22.680Z","updated_at":"2025-04-03T08:31:52.979Z","avatar_url":"https://github.com/aaditmshah.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","others"],"sub_categories":[],"readme":"# Regex #\n\nNative RegExp compatible regular expressions for JavaScript. Patterns may be composed of subexpressions and multiple expressions may be combined into a single expression.\n\n## Installation ##\n\nRegex may be installed on [node.js](http://nodejs.org/ \"node.js\") via the [node package manager](https://npmjs.org/ \"npm\") using the command `npm install regex`.\n\nYou may also install it on [RingoJS](http://ringojs.org/ \"Home - RingoJS\") using the command `ringo-admin install aaditmshah/regex`.\n\nYou may install it as a [component](https://github.com/component/component \"component/component\") for web apps using the command `component install aaditmshah/regex`.\n\n## Usage ##\n\nThe `Regex` constructor is compatible with the native `RegExp` constructor. You may pass it a `regexp` object or a source string:\n\n```javascript\nvar Regex = require(\"regex\");\nvar regex = new Regex(/(a|b)*abb/);\n```\n\n## Methods ##\n\nLike the native `RegExp` constructor instances of `Regex` have the following methods:\n\n### test ###\n\nThe `test` method is used to simply test whether a string matches the regex pattern:\n\n```javascript\nregex.test(\"abb\");   // true\nregex.test(\"aabb\");  // true\nregex.test(\"babb\");  // true\nregex.test(\"aaabb\"); // true\nregex.test(\"ababb\"); // true\nregex.test(\"abba\");  // false\nregex.test(\"cabb\");  // false\n```\n\n## Operations ##\n\nThe `Regex` constructor currently supports the following regex operations:\n\n1. Concatenation\n2. Alternation\n3. Grouping\n4. Closure\n\n## Changelog ##\n\nThe following changes were made in this version of Regex:\n\n### v0.1.0 ###\n\n* Supports basic regex operations - concatenation, alternation, grouping and closure. No support for pattern composition or combining subexpressions yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaditmshah%2Fregex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaditmshah%2Fregex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaditmshah%2Fregex/lists"}