Regex Tester
//g
—
Regex Tester
Regular expressions (regex) are a powerful pattern-matching language built into almost every programming language and text editor. They let you find, validate, and transform text with a concise notation — but the syntax is notoriously dense and easy to get wrong. This tester lets you write a pattern and instantly see which parts of your test string it matches, with the matched segments highlighted in real time. Supported flags include case-insensitive (i), global (g) to find all occurrences, and multiline (m). Use it to debug patterns, explore edge cases, or simply learn how different constructs behave.