Regex Tester

About Regex Tester

Enter a pattern and flags, paste test text, and review match indexes, captured groups, and named groups. The matcher guards against zero-length match loops.

How to Use

Enter a pattern and flags, paste test text, and review match indexes, captured groups, and named groups. The matcher guards against zero-length match loops.

  1. Open the tool : Go to Regex Tester to use the tool.
  2. Review the controls : Check the available fields and actions before you start.
  3. Use the result : Run the action you need, then copy or share the output.

Common Questions

What does Regex Tester help inspect or debug?

Test a regular expression against text and inspect matches.

Can I copy or export the result from Regex Tester?

Yes. Use the copy button or any download option that appears after the result is generated.

What is a regular expression (regex)?

A regular expression is a specific sequence of characters that forms a search pattern. Developers use these patterns in code to quickly find, validate, or replace specific pieces of text, such as ensuring an input field contains a properly formatted email address.

Fields

  • Pattern
  • Flags - Use JavaScript regular expression flags such as g, i, m, s, u, or y.

Actions

  • Test regex