YourFileKit
Esc
Home/Tools/Regex Tester

Test a regular expression

Write a pattern and see every match highlighted live against your own sample text, with capture groups listed for each one.

Text is processed in your browser. Nothing is uploaded to our servers.
Fullscreen
Pattern
//
Sample text
Highlighted matches2 matches
Contact us at support@example.com or sales@example.co.in for help.
Matches & capture groups
support@example.comat index 14
sales@example.co.inat index 37
01
Write a pattern

Enter a regular expression and toggle case-insensitive, multiline, or dot-all as needed.

02
Paste sample text

Matches are highlighted live as you type, in either box.

03
Check the groups

Every match lists its index and any capture groups, numbered and named.

Frequently asked

Is my text sent anywhere?

No. Matching runs using your browser's own regular expression engine, in this tab. Nothing is sent anywhere.

Which regex flavor does this use?

JavaScript's native RegExp. The same engine behind every regex you'd write in a browser or in Node.js.

Why is the global flag always on?

It's applied automatically so every match in your text is found, not just the first one. You don't need to add it yourself.

Is there a limit on matches?

Matching stops at 1,000 to keep the page responsive against a pattern that matches almost everything.

Does this work offline?

Yes, once the page has loaded.

Related tools