Regex Tester

Developer Utility

Test patterns. See matches instantly.

Test JavaScript regular expressions against real text, inspect matches and groups, and adjust common flags in one clean workspace.

/ /
Flags
Test Text0 chars
Match Details
Matches will appear here.
Ready. Enter a pattern and test text.
0Matches
0Groups
gFlags
0Text Length

Test JavaScript regular expressions against real text, inspect matches and capture groups, and switch common flags without leaving your browser.

About This Tool

ToolsFaction Regex Tester gives developers a focused workspace for checking regular expressions against sample or real-world text. Enter a pattern, choose the flags you need and inspect each match with its index and capture groups. It is useful for validating patterns for emails, logs, identifiers, text extraction and many other development tasks.nnTesting runs directly in your browser using JavaScript regular expressions, making quick pattern experiments fast and convenient.

How to Use

  1. Enter a regular expression pattern without the surrounding slash characters.
  2. Choose any flags you need, such as Global, Ignore case, Multiline or Dot all.
  3. Paste the text you want to test into the Test Text panel and choose Test Regex.
  4. Review each match, its starting index and any capture groups in Match Details.

Example

Use the pattern [A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,} with the Global flag to find email-like strings in a block of text.

Frequently Asked Questions

What kind of regex does this tester use?

ToolsFaction Regex Tester uses JavaScript regular expression syntax supported by your browser.

What does the Global flag do?

The Global flag searches for all matches instead of stopping after the first match.

Can I inspect capture groups?

Yes. Match Details lists capture groups returned for each match.

Does the tester show match positions?

Yes. Each match includes its starting index in the test text.

Is my test text uploaded?

Regex testing is designed to run directly in your browser.

Is the Regex Tester free?

Yes. The ToolsFaction Regex Tester is free to use and does not require sign-up.

Free to UseNo hidden fees
No Sign-UpStart instantly
Browser-BasedNothing to install
Privacy FriendlyBuilt for simple use
SHARE THIS TOOL

Share this tool with your network

Choose your favorite platform and share ToolsFaction in a click.