How it works
Enter a regex pattern and test string. Matches are highlighted in real time with capture groups shown below.
Supported flags
g (global), i (case-insensitive), m (multiline), s (dotall). Add flags after the pattern like /pattern/gi.
Common patterns
Email: ^[\\w.-]+@[\\w.-]+\\.\\w+$ | URL: https?://[^\\s]+ | Phone: \\d3-\\d3-\\d4