Web Tools

Regex Tester

Test and debug regular expressions online with real-time match highlighting, match count, and group capture details. Free online tool — runs entirely in your browser.

//g

How to Use

  1. Enter a regular expression

    Type your regex pattern in the pattern field. The surrounding slashes (/ /) are displayed for readability but are not part of the pattern.

  2. Toggle flags as needed

    Use the flag buttons below the pattern field: g (global — find all matches), i (case-insensitive), m (multiline — ^ and $ match line boundaries), s (dotAll — dot matches newline).

  3. Enter the test string

    Type or paste the text you want to test in the Test String field. Matches are highlighted in real time.

  4. Review match details

    The match count appears in the status bar. Scroll the Match Details list to see each match's value, position, length, and any captured groups.

FAQ