Visual regex workbench

Build, import, explain, test and share regex visually.

Regex library

Regex Library

Browse all regex guides, examples, concepts and categories available on CreateRegex.

15 pages 50 examples 15 concepts 93 guides

Categories

Tags

All Regex Guides

Advanced Regex

Api

Compatibility

Data & Formats

Design

Examples

Example 50

Minimum 8 characters Password Regex Example Letters and numbers Password Regex Example Strong password Password Regex Example Strong password (12+ chars) Password Regex Example Simple email regex Email Regex Example More restrictive email regex Email Regex Example Simple URL regex URL Regex Example HTTPS-only URL regex URL Regex Example Simple phone number Phone Number Regex Example E.164 international format Phone Number Regex Example French mobile number Phone Number Regex Example US phone number Phone Number Regex Example Mobile numbers only Phone Number Regex Example Letters and numbers Username Regex Example Letters, numbers and underscore Username Regex Example Username with length limit Username Regex Example Lowercase username Username Regex Example Username with hyphen Username Regex Example International username Username Regex Example DD/MM/YYYY Date Regex Example DD-MM-YYYY Date Regex Example ISO date Date Regex Example ISO datetime Date Regex Example Stricter DD/MM/YYYY Date Regex Example Simple IPv4 IP Address Regex Example Strict IPv4 IP Address Regex Example Private IPv4 ranges IP Address Regex Example IPv4 with CIDR IP Address Regex Example Basic IPv6 IP Address Regex Example Standard UUID UUID Regex Example UUID v4 UUID Regex Example UUID v1 to v5 UUID Regex Example UUID without hyphens UUID Regex Example Short hex color Hex Color Regex Example Long hex color Hex Color Regex Example Short or long hex color Hex Color Regex Example Hex color with alpha Hex Color Regex Example Any CSS hex color Hex Color Regex Example Hex color without # Hex Color Regex Example Simple domain name Domain Name Regex Example Domain with subdomains Domain Name Regex Example Strict domain labels Domain Name Regex Example Lowercase domain name Domain Name Regex Example Domain with optional trailing dot Domain Name Regex Example Punycode domain Domain Name Regex Example Basic slug Slug Regex Example SEO-friendly slug Slug Regex Example Slug with underscores Slug Regex Example Fixed-length slug Slug Regex Example Unicode slug Slug Regex Example

Guides

Guide 93

Why validate passwords with regex? Password Regex Guide Common password requirements Password Regex Guide Strong passwords vs complex passwords Password Regex Guide Can regex measure password strength? Password Regex Guide Client-side and server-side validation Password Regex Guide Common password validation mistakes Password Regex Guide Modern password recommendations Password Regex Guide Why use an email regex? Email Regex Guide What makes email validation difficult? Email Regex Guide Common email validation rules Email Regex Guide Regex validation vs real email verification Email Regex Guide Should you use a strict or simple email regex? Email Regex Guide Why use a URL regex? URL Regex Guide What is a valid URL? URL Regex Guide HTTP vs HTTPS URL validation URL Regex Guide Should a regex validate URLs completely? URL Regex Guide Common URL validation mistakes URL Regex Guide When to use URL regex validation URL Regex Guide Why validate phone numbers with regex? Phone Number Regex Guide What is the E.164 phone number format? Phone Number Regex Guide International phone numbers are difficult to validate Phone Number Regex Guide Mobile numbers vs landline numbers Phone Number Regex Guide Formatting and user-friendly input with spaces, parentheses, dashes and other Phone Number Regex Guide Can regex verify a real phone number? Phone Number Regex Guide Best practices for phone number validation Phone Number Regex Guide What is a username regex? Username Regex Guide Common username validation rules Username Regex Guide ASCII usernames vs Unicode usernames Username Regex Guide What regex cannot validate Username Regex Guide Why validate dates with regex? Date Regex Guide Common date formats Date Regex Guide ISO 8601 date validation Date Regex Guide Can regex validate real calendar dates? Date Regex Guide Date format validation vs date parsing Date Regex Guide Common date validation mistakes Date Regex Guide When to use a date regex Date Regex Guide Why validate IP addresses with regex? IP Address Regex Guide IPv4 vs IPv6 IP Address Regex Guide What makes IPv6 validation difficult? IP Address Regex Guide CIDR notation explained IP Address Regex Guide Private vs public IP addresses IP Address Regex Guide Can regex verify that an IP address exists? IP Address Regex Guide When to use IP address regex validation IP Address Regex Guide What is a UUID? UUID Regex Guide Common UUID format UUID Regex Guide UUID versions UUID Regex Guide Can regex verify UUID uniqueness? UUID Regex Guide When to use a UUID regex UUID Regex Guide What is a hex color? Hex Color Regex Guide Short vs long hex colors Hex Color Regex Guide Hex colors with alpha transparency Hex Color Regex Guide Common hex color validation mistakes Hex Color Regex Guide When to use a hex color regex Hex Color Regex Guide What is a domain name? Domain Name Regex Guide Domain name vs URL Domain Name Regex Guide Subdomains and labels Domain Name Regex Guide Common domain validation mistakes Domain Name Regex Guide Can regex verify that a domain exists? Domain Name Regex Guide Internationalized domain names Domain Name Regex Guide What is a slug? Slug Regex Guide Why are slugs important for SEO? Slug Regex Guide Common slug rules Slug Regex Guide Slug validation vs slug generation Slug Regex Guide Unicode slugs and international websites Slug Regex Guide When to use a slug regex Slug Regex Guide What is a regex cheatsheet? Regex Cheatsheet Guide The most important regex tokens to know Regex Cheatsheet Guide Character classes explained Regex Cheatsheet Guide Understanding regex quantifiers Regex Cheatsheet Guide Groups, alternation and anchors Regex Cheatsheet Guide Regex syntax differences between languages Regex Cheatsheet Guide How to learn regex efficiently Regex Cheatsheet Guide How to learn regex step by step Regex Tutorial Guide Start with literal text Regex Tutorial Guide Use character classes for flexibility Regex Tutorial Guide Add quantifiers to repeat patterns Regex Tutorial Guide Use groups to organize your regex Regex Tutorial Guide Test regex patterns often Regex Tutorial Guide Common beginner mistakes Regex Tutorial Guide What is a lookbehind assertion? JavaScript Lookbehind Guide Positive vs negative lookbehind JavaScript Lookbehind Guide Why use lookbehind in JavaScript? JavaScript Lookbehind Guide Common lookbehind use cases JavaScript Lookbehind Guide Browser compatibility considerations JavaScript Lookbehind Guide Lookbehind vs capturing groups JavaScript Lookbehind Guide When not to use lookbehind JavaScript Lookbehind Guide What is PCRE? JavaScript Regex vs PCRE Guide Why do regex engines behave differently? JavaScript Regex vs PCRE Guide JavaScript regex vs PCRE JavaScript Regex vs PCRE Guide Lookbehind and modern regex features JavaScript Regex vs PCRE Guide Unicode support differences JavaScript Regex vs PCRE Guide Why does a regex work in a testing tool but not in my code? JavaScript Regex vs PCRE Guide Which regex engine should you learn? JavaScript Regex vs PCRE Guide

Identity

Javascript

Key Concepts

Learning

Guide 93

Why validate passwords with regex? Password Regex Guide Common password requirements Password Regex Guide Strong passwords vs complex passwords Password Regex Guide Can regex measure password strength? Password Regex Guide Client-side and server-side validation Password Regex Guide Common password validation mistakes Password Regex Guide Modern password recommendations Password Regex Guide Why use an email regex? Email Regex Guide What makes email validation difficult? Email Regex Guide Common email validation rules Email Regex Guide Regex validation vs real email verification Email Regex Guide Should you use a strict or simple email regex? Email Regex Guide Why use a URL regex? URL Regex Guide What is a valid URL? URL Regex Guide HTTP vs HTTPS URL validation URL Regex Guide Should a regex validate URLs completely? URL Regex Guide Common URL validation mistakes URL Regex Guide When to use URL regex validation URL Regex Guide Why validate phone numbers with regex? Phone Number Regex Guide What is the E.164 phone number format? Phone Number Regex Guide International phone numbers are difficult to validate Phone Number Regex Guide Mobile numbers vs landline numbers Phone Number Regex Guide Formatting and user-friendly input with spaces, parentheses, dashes and other Phone Number Regex Guide Can regex verify a real phone number? Phone Number Regex Guide Best practices for phone number validation Phone Number Regex Guide What is a username regex? Username Regex Guide Common username validation rules Username Regex Guide ASCII usernames vs Unicode usernames Username Regex Guide What regex cannot validate Username Regex Guide Why validate dates with regex? Date Regex Guide Common date formats Date Regex Guide ISO 8601 date validation Date Regex Guide Can regex validate real calendar dates? Date Regex Guide Date format validation vs date parsing Date Regex Guide Common date validation mistakes Date Regex Guide When to use a date regex Date Regex Guide Why validate IP addresses with regex? IP Address Regex Guide IPv4 vs IPv6 IP Address Regex Guide What makes IPv6 validation difficult? IP Address Regex Guide CIDR notation explained IP Address Regex Guide Private vs public IP addresses IP Address Regex Guide Can regex verify that an IP address exists? IP Address Regex Guide When to use IP address regex validation IP Address Regex Guide What is a UUID? UUID Regex Guide Common UUID format UUID Regex Guide UUID versions UUID Regex Guide Can regex verify UUID uniqueness? UUID Regex Guide When to use a UUID regex UUID Regex Guide What is a hex color? Hex Color Regex Guide Short vs long hex colors Hex Color Regex Guide Hex colors with alpha transparency Hex Color Regex Guide Common hex color validation mistakes Hex Color Regex Guide When to use a hex color regex Hex Color Regex Guide What is a domain name? Domain Name Regex Guide Domain name vs URL Domain Name Regex Guide Subdomains and labels Domain Name Regex Guide Common domain validation mistakes Domain Name Regex Guide Can regex verify that a domain exists? Domain Name Regex Guide Internationalized domain names Domain Name Regex Guide What is a slug? Slug Regex Guide Why are slugs important for SEO? Slug Regex Guide Common slug rules Slug Regex Guide Slug validation vs slug generation Slug Regex Guide Unicode slugs and international websites Slug Regex Guide When to use a slug regex Slug Regex Guide What is a regex cheatsheet? Regex Cheatsheet Guide The most important regex tokens to know Regex Cheatsheet Guide Character classes explained Regex Cheatsheet Guide Understanding regex quantifiers Regex Cheatsheet Guide Groups, alternation and anchors Regex Cheatsheet Guide Regex syntax differences between languages Regex Cheatsheet Guide How to learn regex efficiently Regex Cheatsheet Guide How to learn regex step by step Regex Tutorial Guide Start with literal text Regex Tutorial Guide Use character classes for flexibility Regex Tutorial Guide Add quantifiers to repeat patterns Regex Tutorial Guide Use groups to organize your regex Regex Tutorial Guide Test regex patterns often Regex Tutorial Guide Common beginner mistakes Regex Tutorial Guide What is a lookbehind assertion? JavaScript Lookbehind Guide Positive vs negative lookbehind JavaScript Lookbehind Guide Why use lookbehind in JavaScript? JavaScript Lookbehind Guide Common lookbehind use cases JavaScript Lookbehind Guide Browser compatibility considerations JavaScript Lookbehind Guide Lookbehind vs capturing groups JavaScript Lookbehind Guide When not to use lookbehind JavaScript Lookbehind Guide What is PCRE? JavaScript Regex vs PCRE Guide Why do regex engines behave differently? JavaScript Regex vs PCRE Guide JavaScript regex vs PCRE JavaScript Regex vs PCRE Guide Lookbehind and modern regex features JavaScript Regex vs PCRE Guide Unicode support differences JavaScript Regex vs PCRE Guide Why does a regex work in a testing tool but not in my code? JavaScript Regex vs PCRE Guide Which regex engine should you learn? JavaScript Regex vs PCRE Guide

Networking

Reference

Regex Engine

Security

SEO

Telecommunications

Tutorial

Validation

Example 50

Minimum 8 characters Password Regex Example Letters and numbers Password Regex Example Strong password Password Regex Example Strong password (12+ chars) Password Regex Example Simple email regex Email Regex Example More restrictive email regex Email Regex Example Simple URL regex URL Regex Example HTTPS-only URL regex URL Regex Example Simple phone number Phone Number Regex Example E.164 international format Phone Number Regex Example French mobile number Phone Number Regex Example US phone number Phone Number Regex Example Mobile numbers only Phone Number Regex Example Letters and numbers Username Regex Example Letters, numbers and underscore Username Regex Example Username with length limit Username Regex Example Lowercase username Username Regex Example Username with hyphen Username Regex Example International username Username Regex Example DD/MM/YYYY Date Regex Example DD-MM-YYYY Date Regex Example ISO date Date Regex Example ISO datetime Date Regex Example Stricter DD/MM/YYYY Date Regex Example Simple IPv4 IP Address Regex Example Strict IPv4 IP Address Regex Example Private IPv4 ranges IP Address Regex Example IPv4 with CIDR IP Address Regex Example Basic IPv6 IP Address Regex Example Standard UUID UUID Regex Example UUID v4 UUID Regex Example UUID v1 to v5 UUID Regex Example UUID without hyphens UUID Regex Example Short hex color Hex Color Regex Example Long hex color Hex Color Regex Example Short or long hex color Hex Color Regex Example Hex color with alpha Hex Color Regex Example Any CSS hex color Hex Color Regex Example Hex color without # Hex Color Regex Example Simple domain name Domain Name Regex Example Domain with subdomains Domain Name Regex Example Strict domain labels Domain Name Regex Example Lowercase domain name Domain Name Regex Example Domain with optional trailing dot Domain Name Regex Example Punycode domain Domain Name Regex Example Basic slug Slug Regex Example SEO-friendly slug Slug Regex Example Slug with underscores Slug Regex Example Fixed-length slug Slug Regex Example Unicode slug Slug Regex Example

Guide 65

Why validate passwords with regex? Password Regex Guide Common password requirements Password Regex Guide Strong passwords vs complex passwords Password Regex Guide Can regex measure password strength? Password Regex Guide Client-side and server-side validation Password Regex Guide Common password validation mistakes Password Regex Guide Modern password recommendations Password Regex Guide Why use an email regex? Email Regex Guide What makes email validation difficult? Email Regex Guide Common email validation rules Email Regex Guide Regex validation vs real email verification Email Regex Guide Should you use a strict or simple email regex? Email Regex Guide Why use a URL regex? URL Regex Guide What is a valid URL? URL Regex Guide HTTP vs HTTPS URL validation URL Regex Guide Should a regex validate URLs completely? URL Regex Guide Common URL validation mistakes URL Regex Guide When to use URL regex validation URL Regex Guide Why validate phone numbers with regex? Phone Number Regex Guide What is the E.164 phone number format? Phone Number Regex Guide International phone numbers are difficult to validate Phone Number Regex Guide Mobile numbers vs landline numbers Phone Number Regex Guide Formatting and user-friendly input with spaces, parentheses, dashes and other Phone Number Regex Guide Can regex verify a real phone number? Phone Number Regex Guide Best practices for phone number validation Phone Number Regex Guide What is a username regex? Username Regex Guide Common username validation rules Username Regex Guide ASCII usernames vs Unicode usernames Username Regex Guide What regex cannot validate Username Regex Guide Why validate dates with regex? Date Regex Guide Common date formats Date Regex Guide ISO 8601 date validation Date Regex Guide Can regex validate real calendar dates? Date Regex Guide Date format validation vs date parsing Date Regex Guide Common date validation mistakes Date Regex Guide When to use a date regex Date Regex Guide Why validate IP addresses with regex? IP Address Regex Guide IPv4 vs IPv6 IP Address Regex Guide What makes IPv6 validation difficult? IP Address Regex Guide CIDR notation explained IP Address Regex Guide Private vs public IP addresses IP Address Regex Guide Can regex verify that an IP address exists? IP Address Regex Guide When to use IP address regex validation IP Address Regex Guide What is a UUID? UUID Regex Guide Common UUID format UUID Regex Guide UUID versions UUID Regex Guide Can regex verify UUID uniqueness? UUID Regex Guide When to use a UUID regex UUID Regex Guide What is a hex color? Hex Color Regex Guide Short vs long hex colors Hex Color Regex Guide Hex colors with alpha transparency Hex Color Regex Guide Common hex color validation mistakes Hex Color Regex Guide When to use a hex color regex Hex Color Regex Guide What is a domain name? Domain Name Regex Guide Domain name vs URL Domain Name Regex Guide Subdomains and labels Domain Name Regex Guide Common domain validation mistakes Domain Name Regex Guide Can regex verify that a domain exists? Domain Name Regex Guide Internationalized domain names Domain Name Regex Guide What is a slug? Slug Regex Guide Why are slugs important for SEO? Slug Regex Guide Common slug rules Slug Regex Guide Slug validation vs slug generation Slug Regex Guide Unicode slugs and international websites Slug Regex Guide When to use a slug regex Slug Regex Guide

Web Development

Browse by tag

account

Alpha Channel

Alternation (|)

Anchors

API

ASCII

Assertion (^ $ \b)

Authentication

Basics / Beginner

boundaries

Browser

Calendar

Capturing

Character Classes

characters

cheatsheet

CIDR

classes

CMS

Compatibility

content

CSS

Data Validation

Database

Date

design system

DNS

Domain

E.164

Email

frontend

groups

HEX Color

Identifier

Input Validation

International

IP Address

ISO-8601

Javascript

Learn Regex

Length

limit

Login

Logs

lookarounds

Lookbehind (?<=...)

Mobile Phone

negative lookbehind

Networking

password

PCRE

Phone Number

positive lookbehind

Private network

Profile

Punycode

Quantifiers (* + ?)

Regex Engines

Repetition

restrictive

security

seo

simple pattern

slug

Strict Validation

subdomain

Sub-Domains

syntax

Timestamps

TLD

tokens

tutorial

Unicode

URL-safe

username

UUID

validation

verification

Web - HTTP/HTTPS Links