Skip to content
QuickTool logoQuickTool

Regex Tester

Test JavaScript regular expressions against text

Start

Matches: 2
  • foo at index 0
  • foooo at index 7

Description

Experiment with JavaScript regular expressions and see live matches, indexes, and errors.

Key features

  • Pattern + flags input with validation
  • Global and single‑match modes
  • Readable list of matches and positions

How to Use

  1. Enter a pattern (e.g., foo+) and flags (e.g., gi).
  2. Paste test text and review the matches.

Example

Example

foo+ over “foobar foooo bar” finds “foo” and “foooo”.

FAQ

“Invalid pattern”?

Check for bad escapes or unsupported syntax.

No matches?

Try removing the g flag to see a single match.