regexper.js

1.0.7 • Public • Published

regexper.js

Build Status

node.js regex use easy

Installation

using npm (the recommended way):

$ npm install regexper.js --save

Usage

const Regex = require('regexper.js');

let regex = new Regex('(W)(1)(2)3','ig');  

let match = regex.match('wWW')

/* match : {
              value : string
              index : number,
              groups: [string]
            }
*/

regex.matches('Vwisit W123School')

regex.replace('Visit Hello','visi');

regex.replace('Visit Hello',(match)=>{
  let value = match.value;
  let g1 = match.groups[1];
  return 'd';
});

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i regexper.js

Weekly Downloads

0

Version

1.0.7

License

MIT

Last publish

Collaborators

  • kelvv