Regex Tester
Test regular expressions and inspect matches and capture groups instantly.
Regex Tester
Write, test, and debug regular expressions with real-time highlighting.
//
Test String
No matches found.
What is a Regular Expression (Regex)?
A regular expression 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.
Common Regex Flags
g(Global): Don't return after the first match. Find all matches in the string.i(Case Insensitive): Match both upper and lower case characters.m(Multiline): Treat beginning and end characters (^and$) as working over multiple lines.s(DotAll): Allow the dot.character to match newline characters.
Privacy Note
This tool operates entirely in your browser using JavaScript's native RegExp engine. No data, patterns, or test strings are sent to our servers.
Related Guides
Deepen your understanding with our expert articles.
