Developer tool

Regex Tester

Try a JavaScript regular expression against sample text and inspect matched values, positions and captured groups.

Private by designRuns in your browser
Recent tools
Ctrl / ⌘ + Enter to run

Loading workspace…

Preparing the controls for this tool. Your files have not been selected or uploaded.
QUICK START

How to use Regex Tester

  1. Paste input text and enter the pattern without surrounding slash delimiters.
  2. Choose valid JavaScript flags such as g or i and run the test.
  3. Review the matches and download CSV. A successful match is not validation of an entire business rule.
BEFORE YOU BEGIN

What to expect

Processing happens in your browser. Paste input, choose options, then create your result.

Local processing

Your files and inputs are processed in your browser and are not uploaded. Download or copy results before leaving. Normal site and library requests still reach the hosting service.

Pattern and flags example

The pattern \d+ with flag g finds 123 and 456 in "Order 123 and order 456". Global matching collects repeated matches; case-insensitive i changes letter matching. Positions use JavaScript string indexing.

Text: Order 123 and order 456
Pattern: \d+
Flags: g

Engine and resource limits

This uses JavaScript RegExp semantics, which differ from .NET, PCRE and database regex dialects. Results are capped at 1,000 matches. Unsupported flags, malformed expressions or excessive computation are rejected. Start with a small sample for complex patterns.

HELP & TROUBLESHOOTING

Frequently asked questions

Should I include /pattern/g in the pattern field?

No. Put the pattern in its own field and g in Flags. Slash delimiters belong to JavaScript literal syntax, not this input format.

Can it prove a regex is safe for all inputs?

No. Test representative and difficult inputs in the actual engine used by your application. A local match report is not a security guarantee.

Where is my input processed?

Files and inputs are processed locally in your browser and are not uploaded. The hosting service receives normal website and library requests. Download or copy results before leaving.