Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: regexgen
node v12.22.12
endpoint
share
tweet
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…
Clone and edit this document