Regular expression tester online
Type a regex and test text to see every match with its groups, and try replacements live.
About Regex tester
Enter a pattern and flags (g i m s u) and paste test text. Every match is highlighted, with a table of matches, positions and group values below. Type in “Replace with” to preview a replacement at the same time.
It uses your browser's JavaScript engine, which supports lookbehind, named groups and Unicode properties (\p{L}); most patterns also work in Python, PHP and Java.
FAQ
Simple email regex?
^[^\s@]+@[^\s@]+\.[^\s@]+$
More tools here
JSON formatter Base64 encode / decode Image ↔ Base64 URL encode / decode HTML entities Hash generator UUID generator JWT decoder Cron generator Unix timestamp converter Code formatter Markdown preview Text ↔ binary Color converter Contrast checker CSS gradient JSON to CSV CSV to JSON YAML ↔ JSON JSON to TypeScript AES encryption TOTP generator Password strength checker CSS box shadow CSS border radius Tailwind colors Color palette generator Aspect ratio calculator Chmod calculator