Back to Free Tools

Regex Tester

Developer Tool
Test Patterns
All Flags
Group Capture
Real-time

Start Using

//
0 Matches
Contact us at support@example.com or sales@saaspin.com for more info.

About this Tool

Test and debug your JavaScript regular expressions in real-time. Enter a pattern and test string to see immediate match highlighting and capturing group details.


How to Use

  1. Enter Regex: Type your pattern in the input field. Do not include the forward slashes (e.g., use [a-z]+ instead of /[a-z]+/).
  2. Select Flags: Toggle flags like Global (g), Case Insensitive (i), or Multiline (m).
  3. Enter Test Text: Paste the text you want to test against.
  4. View Matches: Matches will be highlighted instantly. Scroll down to see detailed information about captured groups.

Supported Flags

  • g (global): Find all matches rather than stopping after the first match.
  • i (insensitive): Case-insensitive search.
  • m (multiline): The start and end characters (^ and $) work across multiple lines.
  • s (dotAll): Allows . to match newline characters.
  • u (unicode): Treat pattern as a sequence of Unicode code points.
  • y (sticky): Matches only from the index indicated by the lastIndex property.

Common Patterns

  • Email Address
    ^[^\s@]+@[^\s@]+\.[^\s@]+$
  • URL / Website
    https?://[\w-]+(\.[\w-]+)+[/#?]?.*$
  • Phone Number (US)
    ^\(?\d3\)?[-.]?\d3[-.]?\d4$
  • Date (YYYY-MM-DD)
    ^\d4-\d2-\d2$

Use this Tool

Category

Developer Tool

Access

Web Browser