Skip to content
Albright Labs Albright Labs

Text

Regex Tester

Test regular expressions with live match highlighting and capture group inspection. Everything runs in your browser.

Results

Matches: 0
Groups: 0
Pattern:
Highlighted Matches

Common Patterns

Email
^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$
IPv4 Address
^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}...
URL
^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]...
Phone Number (E.164)
^\+?[1-9]\d{1,14}$
UUID
^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-...
Hex Color
^#?([a-f0-9]{6}|[a-f0-9]{3})$
Date (YYYY-MM-DD)
^\d{4}[-/](0[1-9]|1[0-2])[-/](0[1-9]|...
Strong Password
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{8,}$

Enter a regex pattern and test string to see matches

How to use

  • Type or paste a regular expression into the pattern field. Matching updates live as you type.
  • Toggle the flag buttons (g, i, m, s, u) to change how the regex is applied.
  • Paste the text you want to test into the Test String field. All matches are highlighted in amber.
  • Click any Common Pattern card to load a ready-made regex and inspect its groups.

What this is for

Regular expressions are compact patterns that describe how to search, validate, or transform text. This tool lets you iterate on a pattern and see exactly which parts of your string match and what each capture group captures, all without leaving your browser. Useful for writing form validators, parsing log lines, and building search-and-replace logic before committing it to code.

More text tools

Built by Albright Labs. We build the systems behind tools like this one, integrations, custom platforms, and automation. Have a project?

Book a consult