UtiLive.dev

Fast, privacy-friendly developer utilities

UtiLive.dev

  • All Tools
    • JSON
    • JSON Schema Validator
    • JSONPath Runner
    • JSON <> YAML
    • JSON Escape / Unescape
    • JSON Diff
    • CSV <> JSON
    • CSV Toolkit
    • Text Diff
    • String Tools
    • Text Counter
    • Escape / Unescape
    • Slug Generator
    • Lorem Ipsum
    • List Comparer
    • List Delimiter
    • List → Array
    • List → JSON Array
    • Delimiter & Formatter
    • Code Formatter
    • HTML Formatter / Minifier
    • SQL Formatter
    • Markdown Preview
    • Markdown Exporter
    • UUID
    • UUID Inspector
    • cUID Generator
    • Random String
    • Password Generator
    • Secret Key
    • User-Agent
    • Base64 Text
    • Base64 Image
    • URL Encoder / Decoder
    • Hash (MD5/SHA*)
    • JWT Debugger
    • HMAC & AES
    • Bcrypt
    • Number Base Converter
    • Unit Converter
    • Date/Time Toolkit
    • Timestamp Converter
    • Color Tools
    • QR Code
    • Cron Parser
    • Regex Tester
    • Regex Library
    • WHOIS Lookup
    • DNS Lookup
    • Image Tools
    • Support
AboutPrivacy
© UtiLive.dev • Developer tools, dev swiss army knife

Regex Library

Comprehensive collection of regex patterns commonly used in web and mobile app development.

Showing 64 of 64 patternsPage 1 of 6

Email

Validation

Basic email validation

^[^\s@]+@[^\s@]+\.[^\s@]+$
Example: user@example.com

URL

Validation

Simple URL validation

^(https?:\/\/)?([\w-]+\.)+[\w-]+(\/[\w- .?%&=]*)?$
Example: https://example.com/path

URL with Protocol

Validation

URL with required protocol

^https?:\/\/[\w\-]+(\.[\w\-]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?$
Example: https://example.com

IPv4

Networking

IPv4 address validation

^(25[0-5]|2[0-4]\d|[01]?\d\d?)(\.(25[0-5]|2[0-4]\d|[01]?\d\d?)){3}$
Example: 192.168.1.1

IPv6

Networking

IPv6 address validation

^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$
Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334

Hex Color

Design

HEX color code

^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$
Example: #1e293b

RGB Color

Design

RGB color format

^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$
Example: rgb(255, 255, 255)

RGBA Color

Design

RGBA color with alpha

^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([01]?\.\d+|0|1)\s*\)$
Example: rgba(255, 255, 255, 0.5)

Slug

Content

URL-friendly slug

^[a-z0-9]+(?:-[a-z0-9]+)*$
Example: my-cool-post

Username

Validation

Username 3-16 chars, alphanumeric + underscore

^[a-zA-Z0-9_]{3,16}$
Example: john_doe123

Strong Password

Security

Password with uppercase, lowercase, number, special char

^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$
Example: MyP@ssw0rd

Phone Number (US)

Validation

US phone number format

^\+?1?[-.\s]?\(?([0-9]{3})\)?[-.\s]?([0-9]{3})[-.\s]?([0-9]{4})$
Example: +1 (555) 123-4567