Open Source & Community Driven

The Ultimate Regex Library for Developers

Stop googling "Email Regex" every time. A modular, community-validated collection of regex patterns for every use case.

44+ Patterns
5 Categories
2 Countries
100% Free & Open
validation.ts
1
export const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
2
// Validates: user@example.com
3
export const passwordRegex = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/;

Everything you need to validate inputs

Built by developers, for developers. A collection that grows stronger with every contribution.

Community Validated

Patterns are tested and improved by developers worldwide. No more broken regex in production.

Region Specific

Find validators for Indian PAN, Brazilian CPF, US Zip Codes, and more.

Copy-Paste Ready

One click to copy the regex or the TypeScript validation function.

TypeScript First

Every pattern comes with type-safe wrapper functions and test cases.

Zero Dependencies

Pure regex patterns. No heavy validation libraries to bloat your bundle.

Open Source

Found a bug? Submit a PR. We love contributions and improvements.

Build the Ultimate Regex Library With Us

CopyRegex is a community effort. Whether you're a regex wizard or just getting started, there are many ways to contribute and make this tool better for everyone.

Submit Patterns

Have a useful regex pattern? Submit a Pull Request to add it to our collection and help thousands of developers.

Submit PR

Report Issues

Found a bug or a pattern that doesn't work as expected? Open an issue on GitHub and we'll fix it together.

Open Issue

Star & Share

Support the project by starring the repo on GitHub and sharing it with your friends and colleagues.

Star Repo