{"id":16203968,"url":"https://github.com/mottie/is-regexp-string","last_synced_at":"2026-04-26T22:31:54.351Z","repository":{"id":57277551,"uuid":"126703960","full_name":"Mottie/is-regexp-string","owner":"Mottie","description":"Check if a string is a regular expression","archived":false,"fork":false,"pushed_at":"2018-03-25T14:36:09.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T13:40:11.947Z","etag":null,"topics":["check","node","regexp","regular-expression","string"],"latest_commit_sha":null,"homepage":"https://npm.im/is-regexp-string","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/Mottie.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":"2018-03-25T14:09:09.000Z","updated_at":"2019-06-13T04:50:14.000Z","dependencies_parsed_at":"2022-09-12T01:11:22.082Z","dependency_job_id":null,"html_url":"https://github.com/Mottie/is-regexp-string","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/Mottie%2Fis-regexp-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2Fis-regexp-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2Fis-regexp-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mottie%2Fis-regexp-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mottie","download_url":"https://codeload.github.com/Mottie/is-regexp-string/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247719870,"owners_count":20984854,"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":["check","node","regexp","regular-expression","string"],"created_at":"2024-10-10T09:55:50.391Z","updated_at":"2026-04-26T22:31:54.340Z","avatar_url":"https://github.com/Mottie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-regexp-string  [![Build Status](https://travis-ci.org/Mottie/is-regexp-string.svg?branch=master)](https://travis-ci.org/Mottie/is-regexp-string)\n\n\u003e Check if a string is a regular expression\n\n* The string *must* include the opening \u0026amp; closing forward slash (`/`).\n* Regular expression flags, e.g. `gim`, may be optionally included.\n\n## Install\n\n```\n$ npm install is-regexp-string\n```\n\n## Usage\n\n```js\nconst isRegexpString = require('is-regexp-string');\n\n// The forward slashes of the regular expression are *required*\nisRegexpString('/(foo|bar)/gi');\n//=\u003e true\n\nisRegexpString('foo|bar');\n//=\u003e false\n\n// Valid RegExp, but matches everything\nisRegexpString('/foo|/');\n//=\u003e true\n```\n\n## Related\n\n- [is-regexp](https://github.com/sindresorhus/is-regexp) - Check if a value is a regular expression\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmottie%2Fis-regexp-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmottie%2Fis-regexp-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmottie%2Fis-regexp-string/lists"}