Skip to content
ToolInstant

Regex Library

Local

Copy tested regex patterns for email, URL, IP, PAN, Aadhaar, IFSC, GSTIN, mobile, PIN, UPI, dates, UUID and more, with explanations and a live tester.

Loading tool…

Ready · Runs in this browser · nothing uploaded

Developer tools · Free · No upload · No sign-up

How to use the regex library for free

  1. 1Search or browse the patterns.
  2. 2Read what the pattern accepts and try it in the live tester.
  3. 3Copy it as JavaScript, Python or Java code.

Also useful for: regex library, common regex patterns, pan card regex, ifsc code regex, gstin regex, indian mobile number regex.

  • Completely free, no account needed
  • Your data never leaves your device
  • Works on desktop and mobile

Frequently asked questions

Is this regex library free?+

Yes. Every tool on ToolInstant is free to use with no sign-up and no limits on how often you use it.

Is my data uploaded anywhere?+

No. Everything is processed inside your browser using JavaScript. Your input never leaves your device.

Does it work on mobile?+

Yes. ToolInstant works in any modern browser on phones, tablets and desktops.

Do these patterns check that a PAN, Aadhaar or GSTIN is real?+

No. A regex only checks the format. Aadhaar and GSTIN have check digits that need extra code, and only the issuing authority can confirm a number exists.

Why is the Java version different?+

Java patterns live inside string literals, so every backslash is doubled. Python uses a raw string r"…", so backslashes stay as written.