Regex Tester
Test regular expressions in real-time with instant match highlighting, capture group visualization, and replace mode. Built on the native JavaScript RegExp engine.
Frequently Asked Questions
What is a regular expression?
A regular expression (regex) is a sequence of characters that defines a search pattern. It is used for string matching, validation, and text manipulation across virtually all programming languages.
How do regex capture groups work?
Capture groups are created by wrapping part of a regex pattern in parentheses. When a match is found, each group captures the substring it matched, which can be referenced by index. Named groups use (?<name>...) syntax.
What do regex flags mean?
Flags modify regex behavior: g (global) finds all matches, i (case-insensitive) ignores case, m (multiline) makes ^ and $ match line boundaries, s (dotAll) makes . match newlines, and u (unicode) enables full Unicode support.
Need more developer tools?
Compare IDEs, code editors, CI/CD platforms, and more
Compare Developer Tools →