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

1.3.0 • Public • Published

newregexp

GitHub stars

Dynamically create regular expressions from strings

Please ★ this repo if you found it useful ★ ★ ★

Features

  • Create regex from string
  • Works with native javascript RegExp api
  • Understands regex flags
  • Supports typescript

Installation

npm install --save newregexp

Dependencies

Usage

import newRegExp from 'newregexp';
 
const regex = newRegExp('/hello/g');
regex.test('hello'); // true

Support

Submit an issue

Screenshots

Contribute a screenshot

Contributing

Review the guidelines for contributing

License

MIT License

Jam Risser © 2018

Changelog

Review the changelog

Credits

Support on Liberapay

A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.

Add some fuel if you'd like to keep me going!

Liberapay receiving Liberapay patrons

Readme

Keywords

none

Package Sidebar

Install

npm i newregexp

Weekly Downloads

962

Version

1.3.0

License

MIT

Unpacked Size

5.4 kB

Total Files

8

Last publish

Collaborators

  • codejamninja