Package Exports
- regexper.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (regexper.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
regexper.js
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: [{
value : string
}]
}
*/
regex.matches('Vwisit W123School')
regex.replace('Visit Hello','visi');
regex.replace('Visit Hello',(match)=>{
let value = match.value;
return 'd';
});
License
MIT