Regex tester
Uses JavaScript regex syntax. Matches are highlighted below as you type.
What is Regex tester?
A regular expression (regex) is a pattern language for matching text — used for validating input, extracting data from strings, and bulk find-and-replace operations across nearly every programming language.
How to use it
Type a pattern and flags, then sample text below — matches are highlighted live as you type, so you can see exactly what a pattern catches before using it in real code.
Example
Pattern \b[\w.-]+@[\w.-]+\.\w+\b against "contact us at hi@example.com"
highlights: hi@example.com