Regex Checker

Use this regex checker to test patterns against code snippets, highlight every match, and review a rule-by-rule explanation of each rule.

Regex Checker

This regex checker tests your regular expressions against real code and highlights matches as you type.

Tip: You can also paste /pattern/flags into the regex field for quick checks.

Matches

Total matches

3

  • Match 1 · 18-21

    Ada
  • Match 2 · 22-30

    Lovelace
  • Match 3 · 94-99

    Hello

Regex breakdown

  1. \b

    Word boundary

  2. [A-Z]

    Character class (match any of A-Z)

  3. [a-z]

    Character class (match any of a-z)

  4. +

    Repeat 1 or more times

  5. \b

    Word boundary

Flags

  • g

    Global: find all matches