SheepDev

Regular expression tester

Regular expression tester lets you inspect JavaScript matches, groups, and replacement in a cancellable worker in your browser.

Regular expression tester

⌂ Inputs and results stay in this browser and are not automatically stored or sent.

Settings
Waiting for input
Run with the button (no auto-update)
Target textTEXT · 0 B
0 lines
Edit & view

Waiting for input

Complete text result

How to use

Enter the target text, pattern, flags, and optional replacement separately. Include both examples that should match and examples that must not.

Inspect match ranges, groups, and replacement output. A timeout does not mean no match. Other regex engines may interpret the same expression differently from JavaScript.

Examples

hello 123, world 456
---
(?<number>\d+)

Principles and limits

Each input is limited to 102,400 bytes, output to 2,097,152 bytes, and processing to 1,000 ms. Input is never silently truncated.

Guides

Related tools

Text and regular expressions

Split and join text

Split and join text lets you split and join text with configurable delimiters, prefixes, and suffixes in your browser.

Text and regular expressions

Text diff

Text diff lets you compare text by line or character with optional whitespace ignoring in your browser.