Regex Tester Online

Test regular expressions against text with real-time match highlighting online. Supports all JavaScript regex flags.

/ /

Common Patterns

PatternDescription
[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z]{2,}Email address
https?://[^\s/$.?#].[^\s]*URL
\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\bIPv4 address
\d{4}-\d{2}-\d{2}Date (YYYY-MM-DD)
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$Strong password
#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})\bHEX color

How to test a regex pattern

  1. Enter your regex pattern in the pattern field above.
  2. Toggle flags — global (g), case-insensitive (i), multiline (m), dotAll (s), unicode (u).
  3. Paste your test string in the text area below.
  4. See matches highlighted in real-time with match count and capture group details.

Common regex patterns

Need more tools?

Browse our collection of free developer tools.

Browse All Tools →