πŸ”

Regex Tester

Live regular expression tester with match highlighting, capture group inspection, and a built-in cheatsheet. No button needed β€” results update as you type.

/ /
Invalid regex
Flags
No pattern
Enter a pattern and test string to see matches.
Advertisement
How to use
  1. Type your regex pattern (without slashes) and toggle flags such as g, i, or m.
  2. Paste sample text in the Test String area β€” matches highlight live as you type.
  3. Inspect each match and its capture groups below, then copy the result to use elsewhere.
FAQ

This tester uses JavaScript regex syntax. Python, Java, PHP, and Go differ in subtle ways (named groups, escaping, lookbehind support). Verify your flags and engine before porting a pattern.

Enable the m flag so ^ and $ match line boundaries, and add s (dotAll) if you need . to match newlines.

Wrap the part you want in parentheses to create a capture group. Each match below shows every captured group so you can confirm your extraction works.