Simple online tools for developers, networking, text and conversions.

Developer Tools

Regex Tester

Test regular expressions against sample text and inspect matches quickly.

Tool

Use this regex tester to try a pattern against sample text and see whether it matches. It is useful for developers, QA work, validation rules, parsing, scraping patterns, text extraction, and debugging regex behavior before you add the expression to real code.

About this tool

Use this regex tester to try a pattern against sample text and see whether it matches. It is useful for developers, QA work, validation rules, parsing, scraping patterns, text extraction, and debugging regex behavior before you add the expression to real code.

Use regex tester when you need a fast browser-based result without extra setup. It works well for quick checks, one-off tasks, and routine formatting or calculation work.

Learn more

Why use this tool

How to use

  1. Enter the regex pattern on the first line.
  2. Add flags on the second line if needed.
  3. Leave a blank line and paste the sample text below.
  4. Run the tool to see matches or any error message.

Examples

Example

Input

\d+
 g

Order 123 and order 456

Output

123, 456

Useful for checking whether a pattern finds all number sequences.

Example

Input

^[A-Z]+$
 i

Hello

Output

Match found

Shows how flags can change whether a pattern matches.

Common errors

The pattern is correct but the flags are missing.

Fix: Add flags like g or i when the use case depends on them.

Backslashes are pasted or escaped incorrectly.

Fix: Review escaping carefully and test with a small minimal pattern first.

No matches are found because the sample text is not what the pattern expects.

Fix: Start with a simple test case, confirm the match, then expand to the full input.

FAQ

How do I use this regex tester?

Put the regex pattern on the first line, flags on the second line, leave a blank line, then paste the test text.

Which flags are supported?

You can use standard JavaScript regex flags such as g, i, m, s, u, and y.

Why is a regex tester useful?

It helps you check match behavior before using a pattern in production code, validation, or parsing logic.

Is this regex tester free to use?

Yes. It works online in the browser.

What is the difference between a regex tester and a plain text search?

A regex tester evaluates pattern logic, flags, and match behavior, not just simple string presence.

Use cases

Related tools