REGRegex

Common Regex Library & Cheatsheet

Curated regex patterns for Email, Phone, URL, IPv4, IPv6, UUID, Password, Indian GST/PAN/PIN.

tool id:regex-library

Production Regex Pattern Library

Curated regular expressions with live inline test sandboxes

Email Address (RFC 5322)

Standard email address with domain validation

/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/
Test Playground:Matches Pattern

URL (HTTP / HTTPS)

Valid web URL with protocol, domain, and optional path/query

/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/i
Test Playground:Matches Pattern

IPv4 Address

Matches octets from 0.0.0.0 up to 255.255.255.255

/^(?:(?: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]?)$/
Test Playground:Matches Pattern

IPv6 Address

Full format 8-group IPv6 network addresses

/^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/
Test Playground:Matches Pattern

Strong Password (Min 8 chars, A-Z, a-z, 0-9, @$!%*?&)

High security password requiring at least one lowercase, uppercase, number, and symbol

/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/
Test Playground:No Match

UUID v4

Matches canonical RFC 4122 version 4 UUID string format

/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
Test Playground:Matches Pattern

JSON Web Token (JWT)

Base64URL encoded header, payload, and signature separated by dots

/^[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$/
Test Playground:Matches Pattern

HEX Color Code (#RGB or #RRGGBB)

3, 6, or 8-digit hexadecimal CSS color string with # prefix

/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{8})$/
Test Playground:Matches Pattern

Semantic Version (SemVer 2.0.0)

Matches standard major.minor.patch with optional pre-release & build metadata

/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
Test Playground:Matches Pattern

ISO 8601 Date (YYYY-MM-DD)

4-digit year, 2-digit month, 2-digit day format

/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/
Test Playground:Matches Pattern

Indian PAN Card Number

Permanent Account Number: 5 letters, 4 numbers, 1 letter

/^[A-Z]{5}[0-9]{4}[A-Z]{1}$/
Test Playground:Matches Pattern

Indian GSTIN (Goods & Services Tax ID)

15-digit alphanumeric Indian GST identifier

/^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$/
Test Playground:Matches Pattern

URL Slug

Lowercase alphanumeric string separated by single hyphens

/^[a-z0-9]+(?:-[a-z0-9]+)*$/
Test Playground:Matches Pattern
developer manualLayman Guide & Technical Reference
read full blog guide →

About Common Regex Library & Cheatsheet

devstation's Common Regex Library & Cheatsheet allows you to process, format, inspect, and generate data directly in your browser with zero server latency and total privacy.

How to Use Common Regex Library & Cheatsheet

  1. 01Enter or paste your input data into the configuration fields.
  2. 02Review live updates in the output preview section.
  3. 03Click 'Copy Output' in the top action bar to copy your results.
  4. 04Click the star icon to save this tool to your Favorites for quick 1-click access.

When to Use This Tool

  • •When working with regex workflows in your daily engineering tasks.
  • •When you need fast results without installing external packages or desktop apps.
  • •When working with sensitive data that should never leave your local machine.

Frequently Asked Questions

How do I use Common Regex Library & Cheatsheet?

Enter or paste your input data into the configuration fields. Review live updates in the output preview section. Click 'Copy Output' in the top action bar to copy your results. Click the star icon to save this tool to your Favorites for quick 1-click access.

Is my sensitive data or code secure when using this tool?

Yes, absolutely. devstation executes 100% locally inside your web browser sandbox via JavaScript and Web Workers. None of your payload strings, API tokens, SQL queries, or certificates ever leave your local computer or get transmitted across the network.

Can I use Common Regex Library & Cheatsheet offline without an active internet connection?

Yes. devstation is an offline-ready Progressive Web App (PWA). Once loaded in your browser cache, you can disconnect from Wi-Fi or airplane mode and all utilities remain fully operational.

Is Common Regex Library & Cheatsheet free with no limits?

Yes, Common Regex Library & Cheatsheet is completely free with unlimited conversions, zero advertisements, and no registration or API keys required.