Regex Tester

Test your regex patterns against text input. Real-time matching and highlighting for JavaScript regular expressions.

History

No history yet.

Run the tool to save results.

R

Regex Tester

3 viewing now

Test and debug your regular expressions with real-time highlighting and matching.

How It Works

  1. Enter your regex pattern on first line (e.g., /^[a-z]+$/i)
  2. Paste the test text in the box below
  3. Click "Process" to see matches
  4. Review captured groups

Use Cases

  • Developing validation logic
  • Extracting data from logs
  • Learning regular expressions
  • Debugging complex patterns

Frequently Asked Questions

Which flavor is used?

This tool uses the JavaScript Regex engine.

Do I need slashes?

Yes, if you want flags (like /g or /i), wrap your pattern in slashes. If you just type a pattern, it is treated as new RegExp("pattern").

Does it support lookbehinds?

Yes, modern browsers support lookbehinds, but support varies in older environments.