Web Toolbox

Regex tester

Runs in your browser – nothing is uploaded.

Enter a regular expression and some test text to see every match with its position and capture groups. Add flags such as g, i, m, s, u or y in the Flags option.

Patterns use JavaScript (ECMAScript) regex syntax, evaluated by your browser.

Example

Flags: g

Pattern

\b\w+@\w+\.\w+\b

Test text

Email me at hello@example.com

Output

[
  {
    "index": 1,
    "value": "hello@example.com",
    "start": 12,
    "groups": []
  }
]

Frequently asked questions

Is this PCRE or JavaScript regex?

JavaScript. Most syntax is shared with PCRE, but some features, such as possessive quantifiers, are not available.

Why do I only see one match?

Add the g (global) flag to find every match rather than the first.