Regex Tester & Playground
Test your Regular Expressions against custom text strings. Matches are highlighted instantly in your browser.
Test String
Matches
What is a Regular Expression (Regex)?
A Regular Expression (Regex) is a sequence of characters that specifies a search pattern. Usually such patterns are used by string-searching algorithms for "find" or "find and replace" operations on strings, or for input validation. They are incredibly powerful for parsing log files, validating user input (like emails and passwords), and extracting specific data from large text blocks.
Frequently Asked Questions
What do the regex flags (g, m, i) mean?
g (Global): Don't return after the first match, search the whole string.
m (Multiline): Causes ^ and $ to match the begin/end of each line (not just begin/end of string).
i (Insensitive): Makes the search case-insensitive.
Does this tool use JavaScript regex flavor?
Yes. Because this tool runs entirely locally in your web browser, it utilizes the native JavaScript RegExp engine. It supports ECMAScript regular expression standards.