Regex Tester
Write a pattern, paste test text, and see every match highlighted live. Replace, split, explain, and export β the most complete free regex tool.
Theindex 0β3len 3line 1Herindex 45β48len 3line 2Visitindex 94β99len 5line 3Meetingindex 145β152len 7line 4Hexindex 188β191len 3line 5Frequently Asked Questions
About this Regex Tester
This free online regex tester runs entirely in your browser using JavaScript's native RegExp engine. Your data never leaves your device β no server, no signup, no tracking.
Match mode highlights every occurrence with color-coded capture groups. Click a highlighted match to jump to its details. Replace mode applies your pattern with a replacement string supporting $1, $2, and $& back-references. Split mode shows the array your pattern would produce with String.prototype.split(). Explain mode tokenises your pattern into plain-English descriptions of each component.
The Common Patterns library includes 20+ ready-to-use patterns for email, URL, IP address, date, phone number, hex color, UUID, and more. The Cheat Sheet covers anchors, character classes, quantifiers, groups, flags, and escapes β all clickable to append to your pattern.