RunKit + npm: regexgen

node v12.22.12
endpointsharetweet
const regexgen = require('regexgen'); const r1 = regexgen(["I \u2665 cake"]); const trie = new regexgen.Trie(); trie.add("I \u2665 cake"); const r2 = trie.toRegExp(); console.log(r1, r2); console.log("I \u2665 cake".match(r1));
Created from: https://npm.runkit.com/regexgen
Loading…