Regex Tester

Test and debug regular expressions live. Highlights all matches, shows capture groups, and supports every standard flag.

Used 1,341 times

Matches update live as you type

Matches

    About Regex Tester

    Supported Flags

    • g — Global (always on — all matches shown)
    • i — Case insensitive
    • m — Multiline: ^/$ match line ends
    • s — Dot-all: . matches newlines

    Regex Quick Reference

    • . — Any character (except newline)
    • \d \w \s — Digit, word char, whitespace
    • * + ? — 0+, 1+, 0 or 1 times
    • (abc) — Capture group
    • (?<name>abc) — Named capture group
    • (?:abc) — Non-capturing group
    • ^ $ — Start / end of string
    • [a-z] [^a-z] — Character class / negation