Free online tools to generate, calculate,
convert, format, encode, and play.
 

Regex Pattern Library

Copy-ready regular expressions for common use cases. Click any pattern to test it live.


Search & Filter

Testing pattern
Flags:
No matches yet

How It Works

This library provides a curated collection of regular expression patterns for common programming tasks. Each pattern is tested and ready to use in JavaScript, Python, PHP, Java, and most other regex-compatible languages.

Using the Patterns

  • Copy: Click the copy icon next to any pattern to copy it to your clipboard
  • Test: Click a pattern card to open the live tester and try it against your own text
  • Filter: Use the category buttons or search box to find patterns by use case

Pattern Categories

Category Use Cases
Validation Verify input formats: email, phone, postal codes, passwords
Extraction Pull data from text: URLs, IPs, dates, numbers
Format Match structured data: credit cards, hex colors, UUIDs
Security Password strength, input sanitization patterns
Web URLs, HTML tags, domains, email addresses
Text Whitespace, duplicates, sentences, words

Regex Flavor Notes

Compatibility: Patterns use standard regex syntax compatible with JavaScript, Python, Java, C#, PHP, and Ruby. Some advanced features (lookbehind, named groups) may vary between engines. The live tester uses the JavaScript regex engine.

Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with