1.0.5 • Published 4 years ago
regkless-etdk-demo v1.0.5
The package provides a class with a single static method called match, taking a regular expression (string) and a text (string) as arguments. For reference, see the examples below:
1: Matching a^nb^n:
const Regkless = require('regkless-etdk-demo');
const regex = 'a(+:+)b{{?0}}';
const text = 'aaabbb';
const matchResult = Regkless.match(regex, text);
console.log(matchResult);
2: Matching a sequence in lexicographical order:
const Regkless = require('regkless-etdk-demo');
const regex = '(?:.(?<!(.)[a-\\1--\\1]))*';
const text = 'aabcdeeefa';
const matchResult = Regkless.match(regex, text);
console.log(matchResult);