This package has been deprecated

Author message:

More popular package available: `regex-parser`.

string2regex
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

String To Regex Travis CI Build Status

Convert a string encoded regex into a usable one.

NPM Badge

Install

npm install string2regex

Usage

const string2Regex = require("string2regex");
 
string2Regex("/a/g")
//=> /a/g

API

string2Regex(string)

string

Type: string

The string to convert.

Package Sidebar

Install

npm i string2regex

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.06 kB

Total Files

6

Last publish

Collaborators

  • richienb