RegEx: Learn, Build, Regex Tester & Test RegEx
Test regular expressions with real-time highlighting and detailed match analysis
Regular Expression
Examples: /foo/gi or ^\d+$. Supports named groups (?<name>...) and lookarounds (?=...)/(?!...)/(?<=...)/(?<!...).
g: global · i: ignore case
Common Patterns
Test Input
6 match(es)
Paste multi-line text. Use m to make ^$ work across lines, and s to make . match newlines.
Visual Results
Foo foo
bar FOO
food foot football
Match Details
Match #1Position 0-3
Full match:
Foo
Match #2Position 4-7
Full match:
foo
Match #3Position 12-15
Full match:
FOO
Match #4Position 16-19
Full match:
foo
Match #5Position 21-24
Full match:
foo
Match #6Position 26-29
Full match:
foo