ToolBoxy
💻

Regex Library

regex · library · reference

Email

Email

Standard email address

/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+[.][a-zA-Z]{2,}$/
URL

URL (http/https)

HTTP or HTTPS URL

/^https?://[^s/$.?#].[^s]*$/
Phone

US Phone

US phone number

/^[+]?[1]?[s.-]?[(]?[0-9]{3}[)]?[s.-]?[0-9]{3}[s.-]?[0-9]{4}$/
Date

ISO Date

YYYY-MM-DD date format

/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/
Date

US Date

MM/DD/YYYY date format

/^(0[1-9]|1[0-2])/(0[1-9]|[12][0-9]|3[01])/[0-9]{4}$/
Number

Integer

Positive or negative integer

/^-?[0-9]+$/
Number

Decimal

Integer or decimal number

/^-?[0-9]+([.][0-9]+)?$/
Number

Currency

US currency format

/^[$]?[0-9]{1,3}(,[0-9]{3})*([.][0-9]{2})?$/
Identity

UUID v4

UUID v4 format

/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
Identity

IPv4

IPv4 address

/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)[.]){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/
Code

Slug

URL-friendly slug

/^[a-z0-9]+(?:-[a-z0-9]+)*$/
Code

Hex Color

CSS hex color

/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/
Code

Semantic version

Semantic versioning x.y.z

/^(0|[1-9][0-9]*)([.](0|[1-9][0-9]*)){2}$/
Text

Whitespace only

Only whitespace characters

/^s+$/
Text

Alphanumeric

Letters and numbers only

/^[a-zA-Z0-9]+$/
Text

No special chars

Letters, numbers, spaces

/^[a-zA-Z0-9 ]+$/

How to use

  1. 1

    Find a pattern by category or search.

  2. 2

    Copy the regex pattern.

  3. 3

    Test it by typing in the input box.

FAQ

Is this tool free?

Yes — no sign-up, no installation, completely free to use right away.

What is this tool?

Curated library of useful regex patterns for email, URL, IP, date, numbers, and more. Test against your input. You can use it for free with no sign-up or installation — just open the page and start right away.