Test a regular expression
Paste a pattern and some text to see exactly what your regular expression matches — every match with its index and capture groups, plus an optional replacement preview. The result is saved privately in your account.
No sign-up needed — runs instantly in your browser.
How it works
- 1Enter your pattern and the text to test
- 2Pick the flags (and an optional replacement), then press Run
- 3Read the matches or find the report in your files
Frequently asked questions
- Which regex flavour is used?
- JavaScript regular expressions — the same syntax as RegExp, with the global, ignore-case, multiline and dot-all flags.
- Can I preview a replacement?
- Yes — add a replacement string (with $1, $<name> etc.) and the report includes the fully substituted text.
Related tools
Paste text and replace a word, phrase or regular-expression match with something else. Choose case sensitivity and whether all matches or just the first are replaced. The result is stored privately in your account.
TextPaste two versions of a text to see the differences line by line — additions marked with +, removals with −. Optionally ignore case and whitespace. The diff is saved privately in your account.
TextPaste JSON to check whether it's valid. If it isn't, you'll see the exact error and where parsing failed; if it is, you get a quick report of its type, key count and nesting depth — saved privately in your account.
DeveloperPaste Base64 to decode it back to readable text. Both standard and URL-safe Base64 are accepted. The result is stored privately in your account.
Developer