AskDB

Regex Tester

Test regular expressions with live match highlighting in your browser.

Regex pattern

Enter a pattern and flags, then see matches highlighted below.

Contact us at support@example.com or sales@company.org. Invalid: @broken, user@.com
Match 1: support@example.comat index 14
Match 2: sales@company.orgat index 37

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