Biblioteca de patrones Regex

60+ ready-to-use regex patterns. Search, copy, and test inline.

Ad Space

Ad Space

About This Library

This is a curated, searchable collection of 60+ commonly-used regular expression patterns organized by category. Each pattern includes a description, the regex itself, and example matches. Click any pattern to copy it, or use the quick-test panel to validate text against it right on this page.

Everything runs in your browser · no patterns or test strings are sent anywhere. Use these patterns in JavaScript, Python, PHP, Java, Go, or any language that supports regular expressions. For more advanced testing with flags and capture groups, try our Regex Tester.

How It Works

  1. Browse or search: Browse patterns by category (validation, extraction, formatting) or search by name or use case.
  2. Preview the pattern: Each entry shows the regex, a description of what it matches, example inputs and matches, and caveats.
  3. Test with your data: Enter your own test string to verify the pattern matches what you expect.
  4. Copy to use: Copy the regex pattern in JavaScript, Python, or POSIX format for your codebase.

Why Use Regex Library?

Writing regular expressions from scratch is time-consuming and error-prone. Commonly-needed patterns for email validation, URL matching, phone number extraction, credit card detection, date parsing, and IP address validation have well-tested solutions — but finding a reliable one requires searching Stack Overflow, evaluating accuracy, and checking edge cases. This library compiles vetted patterns with documented edge cases, known limitations, and real-world test cases. It's faster than writing your own and more reliable than copying from random internet sources without testing.

Pattern Categories

Related Tools