Testing Regular Expressions Before They Bite
Write a pattern, paste sample text, and every match is highlighted with its capture groups and positions as you type. The tester runs JavaScript's RegExp engine, so behaviour matches exactly what you will get in Node.js or the browser - including the occasionally surprising interaction of flags like g, m and u.
Test with input that should not match, not only input that should - most regex bugs in production are over-matching, not under-matching. For a working vocabulary of character classes, anchors, lookarounds and the classic catastrophic-backtracking trap, see the regex guide.