Regex Tester & Builder

Build regex patterns without knowing the syntax

Build a Regex Pattern

Options

This regex type is pre-configured. Switch to "Tester" mode to customize it.

✓ Generated Regex

Matches a valid email address

//

Matches

Enter a test string to see matches

Regex Quick Reference

Character Classes:
  • . - Any character except newline
  • \d - Digit (0-9)
  • \w - Word character (a-z, A-Z, 0-9, _)
  • \s - Whitespace
  • [abc] - Any of a, b, or c
  • [^abc] - Not a, b, or c
Quantifiers:
  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {n} - Exactly n times
  • {n,} - n or more times
  • {n,m} - Between n and m times