Test and debug regular expressions instantly in your browser — fast, private, and secure. Paste your test text, add a regex pattern + flags, and see highlighted matches immediately.
Start here ↓Use this tool to test and debug regular expressions directly in your browser.
Everything runs client-side in your browser. No uploads. No tracking of your input.
Below are frequently used regex patterns for validation and text matching. Copy, paste, and tweak as needed.
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,}$
Use case: validate user email input.
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9]).{8,}$
Use case: enforce strong password requirements.
^(https?:\/\/)?([\w-]+\.)+[\w-]+(\/[^\s]*)?$
Use case: detect links in text.
^\+?[0-9][0-9\s().-]{7,}$
Use case: basic international phone validation.
^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$
Use case: validate ISO date formats.
Regular expressions are used across many areas of development:
You may also find these useful: