Skip to content

clayrisser/newregexp

Repository files navigation

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

Releases

No releases published

Packages

No packages published