1.0.7 • Published 7 years ago

regexper.js v1.0.7

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

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

1.0.7

7 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago