Regex Generator & Cheatsheet
Ready-made regex for email, password, phone, PAN, Aadhaar, GST and more — copy instantly, or build your own without writing regex by hand.
Common
India
Web & Network
Numbers & Dates
Processed 100% in your browser — nothing you enter here is ever uploaded.
Common use cases
Validate a form field
Grab a battle-tested email, phone or password regex instead of writing (and mis-writing) your own.
Validate Indian IDs
Copy format checks for PAN, Aadhaar, GSTIN, IFSC and PIN codes for signup and KYC forms.
Build a quick custom rule
Generate a pattern like “6–10 letters and digits” by ticking a few boxes — no regex knowledge needed.
How to use the Regex Generator
Browse the ready-made patterns — email, password, phone, PAN, Aadhaar, GST, IFSC, URL, hex colour and more. Use the search box to find one fast.
Type in the test box under any pattern to check your own value against it — a green tick means it matches.
Click Copy to grab the regex, ready to paste into your code.
Need something custom? Open the "Build your own" tab, tick the character types and length you want, and the regex is generated for you — no regex syntax required.
To debug a complex expression against longer text, pair this with the Regex Tester.