Check a regular expression, lay it out line by line, read what every token does and test it against your own sample text — all in your browser.
—
Everything runs in your browser. The pattern is checked with the JavaScript regular expression engine — nothing is uploaded.
Regex Formatter takes a regular expression and lays it out so you can actually read it. Paste a pattern in bare form or wrapped in slashes with flags, and the tool checks it with the JavaScript regular expression engine, lists every token with a short explanation, and numbers the capture groups so you know which bracket belongs to which backreference. The formatted layout puts each alternation on its own line and indents nested groups; that view is meant for reading only, because the added spaces and line breaks are not part of the pattern. The exact, copy-ready pattern is shown next to it, and an optional sample text lists every match with its position and captured groups. It validates ECMAScript syntax as implemented by your browser: constructs that only exist in PCRE, Python or .NET are reported as invalid, and no remote engine is contacted.
Free online utility tools. No signup. No tracking.
Impressum · Sitemap · Some links contain affiliate advertising
Nutzung auf eigene Gefahr. Diese Tools werden kostenlos und ohne Gewährleistung für Richtigkeit, Vollständigkeit, Verfügbarkeit oder Eignung für einen bestimmten Zweck bereitgestellt; Ergebnisse sind keine professionelle Beratung. Die gesetzliche Haftung — insbesondere für Vorsatz, grobe Fahrlässigkeit sowie für Verletzungen von Leben, Körper oder Gesundheit — bleibt unberührt.
Use at your own risk. These tools are provided free of charge without any warranty of accuracy, completeness, availability or fitness for a particular purpose; results are not professional advice. Statutory liability — in particular for intent, gross negligence and injury to life, body or health — remains unaffected.
Uso bajo su propio riesgo. Estas herramientas se ofrecen de forma gratuita y sin garantía de exactitud, integridad, disponibilidad o idoneidad para un fin determinado; los resultados no constituyen asesoramiento profesional. La responsabilidad legal — en particular por dolo, negligencia grave y daños a la vida, el cuerpo o la salud — no se ve afectada.
Utilisation à vos propres risques. Ces outils sont fournis gratuitement, sans garantie d’exactitude, d’exhaustivité, de disponibilité ou d’adaptation à un usage particulier ; les résultats ne constituent pas un conseil professionnel. La responsabilité légale — notamment en cas de dol, de négligence grave et d’atteinte à la vie, au corps ou à la santé — reste inchangée.