Dynamically create regular expressions from strings
Please ★ this repo if you found it useful ★ ★ ★
- Create regex from string
- Works with native javascript RegExp api
- Understands regex flags
- Supports typescript
npm install --save newregexp
import newRegExp from 'newregexp';
const regex = newRegExp('/hello/g');
regex.test('hello'); // true
Submit an issue
Contribute a screenshot
Review the guidelines for contributing
Jam Risser © 2018
Review the changelog
- Jam Risser - Author
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!