Regex Builder & Tester

Build, test, and debug regular expressions with real-time feedback

Common Patterns

Click to use common regex patterns

Regex Pattern

Enter your regular expression pattern and set flags

Test String

Enter text to test your regex against

Sample Data

Load sample text for testing

Regex Reference

Character Classes

  • . - Any character
  • \d - Digit [0-9]
  • \w - Word character
  • \s - Whitespace
  • [abc] - Character set
  • [^abc] - Negated set

Quantifiers

  • * - 0 or more
  • + - 1 or more
  • ? - 0 or 1
  • {n} - Exactly n
  • {n,m} - Between n and m
  • {n,} - n or more

Anchors

  • ^ - Start of string
  • $ - End of string
  • \b - Word boundary
  • \B - Non-word boundary

Groups

  • (abc) - Capture group
  • (?:abc) - Non-capture
  • (?=abc) - Lookahead
  • (?!abc) - Negative lookahead
  • a|b - Alternation

Related Tools

Discover other useful tools that work well with your current tool

Hash Generator

Generate MD5, SHA-1, SHA-256, and other hash values for text and files

Popular
Developer Tools

Password Generator

Generate secure passwords with customizable length, characters, and complexity

Popular
Developer Tools

QR Code Generator

Generate QR codes for text, URLs, emails, phone numbers, and more

Popular
Developer Tools

Regex Tester

Test and validate regular expressions with real-time matching and explanation

Developer Tools