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: xregexp
node v18.11.0
endpoint
share
tweet
var xregexp = require("xregexp") // /[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/ const STR_ESCAPE = xregexp( `[\u0000-\u001f\u0022\u005c\ud800-\udfff] # chars A - G | [\ud800-\udbff] # chars H - J (?![\udc00-\udfff]) # BUT NOT something else | (?:[^\ud800-\udbff]|^) # some explantation [\udc00-\udfff] # something else ` , 'x' )
Created from: https://npm.runkit.com/xregexp
Loading…
Clone and edit this document