Regular Expression Tester

Test and debug regular expressions with real-time matching and visualization

Regular Expressions Guide

Common Patterns

Basic regex patterns and their meanings:

  • \w+

    Matches one or more word characters

  • \d+

    Matches one or more digits

  • [a-zA-Z]

    Matches any single letter

Flags

Regex modifier flags and their uses:

  • g (global)

    Find all matches rather than stopping after the first match

  • i (ignore case)

    Case-insensitive matching

  • m (multiline)

    ^ and $ match start/end of each line