Skip to content
OT

Regex Tester

Free No sign-up Runs in your browser

Test a JavaScript regular expression and see every match.

Matches

How to use

  1. 1 Type your regular expression in Pattern, without the surrounding slashes.
  2. 2 Paste the text to search in. Matches update as you type.
  3. 3 Each match shows its position and its groups. Results use JavaScript rules, the same as in browsers and Node.js.

Example

Input

Pattern: (\w+)@(\w+)\.com
Text: mail asha@example.com

Output

Match 1 at position 5: "asha@example.com"
  Group 1: "asha"
  Group 2: "example"

Related tools