Regular Expression (Regex) Tester

Test your JavaScript regex patterns against text.

Results

Enter a regular expression above to see results.

How to Use This Tool

Enter Regex & Text

  1. 1

    Type your regular expression pattern in the 'Regular Expression' field (without slashes).

  2. 2

    Select the desired flags (g: global, i: case-insensitive, m: multiline).

  3. 3

    Enter the text you want to test against in the 'Test String' area.

View Results

  1. 1

    Matches will appear automatically below as you type.

  2. 2

    Each match shows the matched text, its starting index, and any captured groups.

  3. 3

    If your regex pattern is invalid, an error message will be displayed.

Cookie Settings

We use cookies to enhance your experience and analyze site traffic. By clicking "Accept All", you consent to our use of cookies.