newregexp

Dynamically create regular expressions from strings

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
newregexp
1.3.04 years ago6 years agoMinified + gzip package size for newregexp in KB

Readme

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