Pattern library

Regex patterns you can copy and test

Each pattern comes with a token-by-token explanation, matching and non-matching examples, and a link that opens it in the live tester.

Patterns
25
Indian formats
8
Free & private
100%

Text & cleanup

Everyday text patterns that work anywhere: numbers only, letters only, no special characters, usernames, extra whitespace, extracting numbers, whole-word search and removing duplicate lines.

India

Formats used in Indian forms, KYC, GST and payments: PAN, Aadhaar, GSTIN, IFSC, PIN code, mobile numbers, vehicle plates and UPI IDs.

Web & network

Everyday web patterns: email addresses, URLs, IPv4 addresses, UUIDs and hex colours.

Dates, numbers & forms

Common form-validation patterns: ISO dates, US phone numbers, ZIP codes and password rules.

Want to build your own? Open the regex tester.