⬇️Installation and establishment
You can simply install the dependency to your project with Npm:
npm install regex-simplify
Or with yarn:
yarn add regex-simplify
Import the module in your code
// ES6 (includes typings)
import regex from 'regex-simplify';
// CommonJS
const regex = require('regex-simplify');
⚠️ All functions returns this object:
{
include: true | false, // If the string matched with the regex
matchs: RegExpMatchArray | null, // An array of all match
groups: Array<Object | null> | null, // An array of all groups for get parts of the matched string
}
Last updated