Regex Tester
Test and debug regular expressions
Use the interactive tool with JavaScript enabled.
Test and debug regular expressions
Use the interactive tool with JavaScript enabled.
Write and test regex patterns against your input with live match highlighting as you type. All JavaScript flags are supported: global (g), case-insensitive (i), multiline (m), dotAll (s), and Unicode (u). Capture groups and named capture groups are shown individually. Use replace mode to preview substitutions before applying them in code. Useful for validating emails, parsing log files, and building input validation patterns.
Tool processing runs in your browser. Privacy policy and cookie preferences.