MDN self-hosted library · e01.org

Regular expressions

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

js
const regex1 = /ab+c/g;
js
const regex2 = new RegExp("ab+c", "g");