Regex Tester

Test and debug regular expressions in real time

Category

Dev Tools

How to Use

  1. Enter regular expression above
  2. Select flags (g/i/m/s)
  3. Enter test string below, matches are highlighted in real time

Examples

  • Match numbers

    Input: Pattern: \d+ Test: abc123def456

    Output: 2 matches: 123, 456

FAQ

What do the g/i/m/s flags mean?
g=global match, i=case insensitive, m=multiline mode, s=dot matches newline.
What regex syntax is supported?
JavaScript regex syntax including capture groups, character classes, quantifiers, anchors, etc.

Related tools