Bob's Multi Tool

Regex Tester

regex testerregular expression testerjavascript regexregex cheat sheetPrivacy: Browser local

Regex Tester

Test JavaScript regular expressions, inspect matches, and keep common patterns close by.

Input / Output

Start with the tool

Input, output, and copy actions stay in this main surface. Examples and reference checks are separated below.

Copy-ready output

Local session

Input state is saved only in this browser so you can restore the last workspace without an account.

Review after the result

Open examples, checks, and related tools only after the primary input/output flow is done.

Web operations workbench

Use cases

  • Validate JavaScript regular expressions
  • Inspect capture groups and match positions
  • Apply common snippets for email, URL, ISO date, UUID, IPv4, HEX color, and slug patterns

Before copying

  • Run one positive sample and one negative sample before copying the pattern.
  • Confirm each flag is intentional: g, i, m, s, u, or y.
  • Copy either the raw pattern or the slash-wrapped form based on the target API.

Common failure cases

  • A pattern works in PCRE or Python but fails in the JavaScript RegExp engine.
  • Backslashes are copied from a string literal without escaping them for the target runtime.
  • Run one positive sample and one negative sample before copying the pattern.
  • Confirm each flag is intentional: g, i, m, s, u, or y.
  • Copy either the raw pattern or the slash-wrapped form based on the target API.
Regex Tester - Free Online JavaScript Regex Tool | bobob.app