MDN self-hosted library · e01.org

Character escape: \n, \u{...}

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

js
/[\c0]/.test("\x10"); // true
/[\c_]/.test("\x1f"); // true
/[\c*]/.test("\\"); // true
/\c/.test("\\c"); // true
/\c0/.test("\\c0"); // true (the \c0 syntax is only supported in character classes)
js
const pattern = /a\nb/;
const string = `a
b`;
console.log(pattern.test(string)); // true