Test JavaScript regular expressions with live match highlighting, capture groups and replacement preview.
Regular expressions describe text patterns compactly, but a small mistake changes what matches. Testing against real sample text with live highlighting is the fastest way to learn and debug them.
This tester uses JavaScript regex syntax. Enter a pattern, choose flags such as global or case-insensitive, and see every match highlighted along with capture groups and a replacement preview.
A simple pattern such as [\w.+-]+@[\w-]+\.[\w.]+ finds most addresses in a block of text.
(\d{4})-(\d{2})-(\d{2}) captures year, month and day separately.
You might also find these tools helpful.