
Share this tool

Share this tool
Test, replace, and split with regex β live highlighting, capture groups, shareable URLs.
Contact us at hello@toolsflip.com or support@example.org. Bad: foo@, @bar.com, plain text.
.any character except newline\ddigit (0-9)\Dnon-digit\wword char [A-Za-z0-9_]\Wnon-word char\swhitespace\Snon-whitespace\bword boundary^start of line/string$end of line/string*0 or more+1 or more?0 or 1 (or lazy){n}exactly n times{n,m}n to m times[abc]any of a, b, c[^abc]none of a, b, ca|ba or b(abc)capture group(?:abc)non-capturing group(?<name>abc)named capture group(?=abc)lookahead(?!abc)negative lookahead(?<=abc)lookbehindBuild and debug regular expressions in real time with our free online regex tester. Type a pattern, flip the flags you need, and watch every match highlight instantly. Switch to Replace mode to preview String.replace with substitutions like $1 and $&, or Split mode to see how your regex breaks a string apart. Share any regex with a single click β the tool encodes your pattern, flags, and test string into the URL so teammates land on the exact same state. Everything runs in your browser; your patterns and text never leave your device.
g for all matches, i for case-insensitive, and more.g β global, finds every match instead of just the first.i β case-insensitive matching.m β multiline, so ^ and $ match at line breaks.s β dotall, so . matches newlines.u β unicode, enables full unicode handling and \p{β¦} escapes.y β sticky, matches only from lastIndex.Developers validating email, phone, and password inputs. Data and QA engineers cleaning CSVs, logs, and API responses. DevOps folks writing grep, sed, nginx, and alerting rules. Security researchers building detection patterns. Writers running find-and-replace across long documents. Anyone who writes a regex wants to confirm it works before shipping it β this tool is that sandbox.